String searching algorithms

Objective:  compare two algorithms by inputting the same data to both. The two algorithms are the naive exact matching algorithm and the Boyer-Moore algorithm. They are implemented in Python code. The data consists of a pattern (P) and text (T).