首页 > Term: Knuth-Morris-Pratt algorithm (KMP)
Knuth-Morris-Pratt algorithm (KMP)
A string matching algorithm that turns the search string into a finite state machine, then runs the machine with the string to be searched as the input string. Execution time is O(m+n), where m is the length of the search string, and n is the length of the string to be searched.
0
创建者
- GeorgeV
- 100% positive feedback