causing the algorithm to check the same characters many times. Better integrating the iteration of the pattern within the larger iteration of the text is the key to more optimized search algorithms, such as the Knuth–Morris–Pratt algorithm. It tracks collections of characters...