This is an implementation of the KMP algorithm. This algorithm is used to find a single pattern of length m within an alphabet of in a text of length n.
*To compile the library, and use the example :
$ sudo make
*To use the KMP library in your projects create a main.c file and use the following functions :
searchKMP(pattern,m,text,n);
Where the different variables correspond to the description of the KMP Algorithm.
- Donald E. Knuth, James H. Morris, and Vaughan R. Pratt. SIAM Journal on Computing 6(2):323--350 (March 1977), Fast Pattern Matching in Strings.
This code is released under The MIT License.