Two-way string-matching
Maxime Crochemore A, Dominique Perrin A · Journal of the ACM · 1991
A new string-matching algorithm is presented, which can be viewed as an intermediate between the classical algorithms of Knuth, Morris, and Pratt on the one hand and Boyer and Moore, on the other hand.The algorithm is linear in time and uses constant space as the algorithm of Galil and Seiferas.It presents the advantage of being remarkably simple which consequently makes its analysis possible.The algorithm relies on a previously known result in combinatorics on words, called the Critical Factorization Theorem, which relates the global period of a word to Its local repetitions of blocks Categories and Subject Descriptors: D.
Cited by 158 works. doi:10.1145/116825.116845 Open-access PDF
Authors
References
- Fast Pattern Matching in Strings
- Efficient string matching
- Linear pattern matching algorithms
- A fast string searching algorithm
- A Space-Economical Suffix Tree Construction Algorithm
- Combinatorics on words
- Rapid identification of repeated patterns in strings, trees and arrays
- Programming Techniques: Regular expression search algorithm
- Transductions and Context-Free Languages
- Finding approximate patterns in strings