Study of Single Pattern Exact Matching Algorithms

WU Xi-hong,LING Jie
DOI: https://doi.org/10.3969/j.issn.1003-5060.2007.07.011
2007-01-01
Abstract:Presented in the paper is a detailed analysis of five single pattern exact matching algorithms including the Brute-Force(BF) algorithm,the Knuth-Morris-Pratt(KMP) algorithm,the Boyer-Moore(BM) algorithm,the Tuned BM algorithm and the Quick Search(QS) algorithm.Some experiments are made in which the attempted times,character comparisons and needed time of these algorithms are tested through using different length of pattern strings.It is concluded that the performance of the BM,Tuned BM and QS algorithms is satisfactory in actual operation.The Tuned BM algorithm is the quickest one among these algorithms because it can reduce character comparisons effectively and shorten the time.
What problem does this paper attempt to address?