Tighter Lower Bounds on the Exact Complexity of String Matching
Authors:
- Richard ColeRCRichard Cole
- Ramesh HariharanRHRamesh Hariharan
- Mike PatersonMPMike Paterson
- Uri ZwickUZUri Zwick
- 1 February 1995
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Computing
- Vol. 24 (1) , 30-45
Abstract
This paper considers the exact number of character comparisons needed to find all occurrences of a pattern of length m in a text of length n using on-line and general algorithms. For on-line algorithms, a lower bound of about $(1 + \frac{9}{4(m + 1)}) \cdot n$ character comparisons is obtained. For general algorithms, a lower bound of about $(1 + \frac{2}{m + 3}) \cdot n$ character comparisons is obtained. These lower bounds complement an on-line upper bound of about $(1 + \frac{8}{3(m + 1)}) \cdot n$ comparisons obtained recently by Cole and Hariharan. The lower bounds are obtained by finding patterns with interesting combinatorial properties. It is also shown that for some patterns off-line algorithms can be more efficient than on-line algorithms.
Keywords
This publication has 13 references indexed in Scilit:
- Tighter Upper Bounds on the Exact Complexity of String MatchingSIAM Journal on Computing, 1997
- Tight Bounds on the Complexity of the Boyer–Moore String Matching AlgorithmSIAM Journal on Computing, 1994
- Efficient Comparison Based String MatchingJournal of Complexity, 1993
- On the Exact Complexity of String Matching: Upper BoundsSIAM Journal on Computing, 1992
- On the Exact Complexity of String Matching: Lower BoundsSIAM Journal on Computing, 1991
- Correctness and efficiency of pattern matching algorithmsInformation and Computation, 1991
- Optimal canonization of all substrings of a stringInformation and Computation, 1991
- Algorithms for Finding Patterns in Strings1990
- The Boyer–Moore–Galil String Searching Strategies RevisitedSIAM Journal on Computing, 1986
- A fast string searching algorithmCommunications of the ACM, 1977