A New Substring Searching Algorithm

作者:Zhao Xiao*; Li Sihui; Yang Yun; Chao Yuyan; He Lifeng
来源:IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2014, E97D(7): 1893-1896.
DOI:10.1587/transinf.E97.D.1893

摘要

This paper proposes a new algorithm for substring searching. Our algorithm is an improvement on the famous BM algorithm. When a mismatch happens while searching a substring (pattern), the BM algorithm will use two strategies to calculate shifting distances of the substring respectively and selects the larger one. In comparison, our algorithm uses each of the two strategies for their most suitable cases separately without a selection operation. Experimental results demonstrated that our algorithm is more efficient than the BM algorithm and the Quick Search algorithm, especially for binary strings and DNA strings.

全文