A fast string-searching algorithm for multiple patterns

作者:

Highlights:

摘要

The string-searching problem is to find all occurrences of pattern(s) in a text string. The Aho-Corasick string searching algorithm simultaneously finds all occurrences of multiple patterns in one pass through the text. On the other hand, the Boyer-Moore algorithm is understood to be the fastest algorithm for a single pattern. By combining the ideas of these two algorithms, we present an efficient string searching algorithm for multiple patterns. The algorithm runs in sublinear time, on the average, as the BM algorithm achieves, and its preprocessing time is linear proportional to the sum of the lengths of the patterns like the AC algorithm.

论文关键词:

论文评审过程:Received 25 July 1991, Accepted 14 September 1992, Available online 12 July 2002.

论文官网地址:https://doi.org/10.1016/0306-4573(93)90106-N