module documentation
Provides the find_kmp function and compute_kmp_fail utility to perform a text search using the Knuth-Morris-Pratt algorithm.
Function | compute |
Utility that computes and returns KMP 'fail' list. |
Function | find |
Return the lowest index of T at which substring P begins (or else -1). |