Knuth–Morris–Pratt Algorithm Implementation in C# - Programming Algorithms
Knuth–Morris–Pratt Algorithm Programming Algorithm in C#. Knuth–Morris–Pratt (a.k.a KMP Algorithm) is a string search algorithm. it searches for occurrences of a sub-string within a main-string by employing the observation that when a mismatch occurs, the word itself embodies sufficient information to determine where the next match could begin, thus bypassing re-examination of previously matched characters.
programmingalgorithms.com