Abstract

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.

Details

Title
The Analysis of KMP Algorithm and its Optimization
Author
Lu, Xiangyu 1 

 Department of Computer Science, Harbin Institute of Technology at Weihai, Weihai, Shandong, 264200, China 
Publication year
2019
Publication date
Nov 2019
Publisher
IOP Publishing
ISSN
17426588
e-ISSN
17426596
Source type
Scholarly Journal
Language of publication
English
ProQuest document ID
2568058259
Copyright
© 2019. This work is published under http://creativecommons.org/licenses/by/3.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.