The Analysis of KMP Algorithm and its Optimization

Xiangyu Lu · Journal of Physics Conference Series · 2019

Knuth-Morris-Pratt (KMP) algorithm is an essential manifestation of matching algorithms. This paper presents and discusses the KMP algorithm and some of its optimization. Calculating and searching in a letter numbered table and a new data structure called last-identical array propose a new string searching algorithm L-I-KMP based on the KMP algorithm. This new method is faster than KMP in practice of specific situations.

Read the paper · More papers on PaperTik