Abstract
It is shown how to modify the Boyer-Moore string matching algorithm so that its worst case running time is linear even when multiple occurrences of the pattern are present in the text.
- 1 Boyer, R.S., and Moore, J.S. A fast string searching algorithm. Comm. ACM 20, 10 (Oct. 1977), 762-772. Google ScholarDigital Library
- 2 Guibas, L.J., and Odlyzko, A.M. A new proof of the linearity of the Boyer-Moore string searching algorithms. Proc. 18th Ann. 1EEE Symp. Foundations ofComptr. Sci., 1977, pp. 189-195.Google ScholarDigital Library
- 3 Knuth, D.E., Morris, Jr., J.H., and Pratt, V.B. Fast pattern matching in strings. SlAM J. Comping. 6, 2 (1977), 323-350.Google ScholarDigital Library
- 4 Lyndon, R.C., and Schutzenberger, M.P. The equation a M = bNc P in a free group. Michigan Math. J. 9 (1962), 289-298.Google ScholarCross Ref
- 5 McCreight, E.M. A space economical suffix tree construction algorithm. J. ACM 23, 2 (April 1976), 262-272. Google ScholarDigital Library
- 6 Weiner, P. Linear pattern matching algorithm. Proc. 14th Ann. IEEE Symp. Switching and Automata Theory, 1973, pp. 1-11.Google ScholarDigital Library
- 7 Yao, A.C.C. The complexity of pattern matching for a random string. Mss., Comptr. Sci. Dept., Stanford U., Stanford, Calif., 1977.Google Scholar
Recommendations
A Composite Boyer-Moore Algorithm for the String Matching Problem
PDCAT '10: Proceedings of the 2010 International Conference on Parallel and Distributed Computing, Applications and TechnologiesThe string matching problem has found wide application in computer science, molecular biology, genetic engineering, semantics and many other fields. In this paper, we give analysis to several classical algorithms, KMP, BM and their improvements. Then, ...
Approximate Boyer-Moore String Matching for Small Alphabets
Recently a new variation of approximate Boyer-Moore string matching was presented for the k-mismatch problem. The variation, called FAAST, is specifically tuned for small alphabets. We further improve this algorithm gaining speedups in both ...
Comments