Fast string searching

Andrew Hume, Daniel Sunday
1991 Software, Practice & Experience  
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
more » ... t 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. KEY WORDS String searching Pattern matching Boyer-Moore
doi:10.1002/spe.4380211105 fatcat:x3q5htorgjbljngmdkei4dvljq