Naive String Search Algorithm

In computer science, string-searching algorithms, sometimes named string-matching algorithms, are an important class of string algorithms that try to find a place where one or several strings (also named shapes) are found within a larger string or text. In practice, the method of feasible string-search algorithm may be affected by the string encoding.

Naive String Search source code, pseudocode and analysis