Two-way string-matching
Open Access
- 1 July 1991
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 38 (3) , 650-674
Abstract
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 blocksKeywords
This publication has 25 references indexed in Scilit:
- Longest common factor of two wordsLecture Notes in Computer Science, 1987
- The Boyer–Moore–Galil String Searching Strategies RevisitedSIAM Journal on Computing, 1986
- The smallest automation recognizing the subwords of a textTheoretical Computer Science, 1985
- Factorizing words over an ordered alphabetJournal of Algorithms, 1983
- Lexicographically least circular substringsInformation Processing Letters, 1980
- Pattern Matching in Strings1980
- Avoidable patterns in strings of symbolsPacific Journal of Mathematics, 1979
- Transductions and Context-Free Languages1979
- A fast string searching algorithmCommunications of the ACM, 1977
- Efficient string matchingCommunications of the ACM, 1975