Fast string searching
Authors:
- 1 November 1991
- journal article
- research article
- Published by Wiley in Software: Practice and Experience
- Vol. 21 (11) , 1221-1248
Abstract
Since the Boyer‐Moore algorithm was described in 1977, it has been the standard benchmark for the practical string search literature. Yet this yardstick compares badly with current practice. We describe two algorithms that perform 47% fewer comparisons and are about 4.5 times faster across a wide range of architectures and compilers.These new variants are members of a family of algorithms based on the skip loop structure of the preferred, but often neglected, fast form of Boyer‐Moore. We present a taxonomy for this family, and describe a toolkit of components that can be used to design an algorithm most appropriate for a given set of requirements.Keywords
This publication has 12 references indexed in Scilit:
- A very fast substring search algorithmCommunications of the ACM, 1990
- Improved string searchingSoftware: Practice and Experience, 1989
- A tale of two grepsSoftware: Practice and Experience, 1988
- On the Expected Sublinearity of the Boyer–Moore AlgorithmSIAM Journal on Computing, 1988
- The Boyer–Moore–Galil String Searching Strategies RevisitedSIAM Journal on Computing, 1986
- A comparison of three string matching algorithmsSoftware: Practice and Experience, 1982
- A Correct Preprocessing Algorithm for Boyer–Moore String-SearchingSIAM Journal on Computing, 1980
- Practical fast searching in stringsSoftware: Practice and Experience, 1980
- A fast string searching algorithmCommunications of the ACM, 1977
- Fast Pattern Matching in StringsSIAM Journal on Computing, 1977