TIGHTER LOWER BOUNDS ON THE EXACT COMPLEXITY OF STRING-MATCHING

Citation
R. Cole et al., TIGHTER LOWER BOUNDS ON THE EXACT COMPLEXITY OF STRING-MATCHING, SIAM journal on computing, 24(1), 1995, pp. 30-45
Citations number
21
Categorie Soggetti
Computer Sciences","Computer Science Theory & Methods",Mathematics
Journal title
ISSN journal
00975397
Volume
24
Issue
1
Year of publication
1995
Pages
30 - 45
Database
ISI
SICI code
0097-5397(1995)24:1<30:TLBOTE>2.0.ZU;2-2
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+9/4(m+1)).n character comparisons is obtained. For general algorithms, a lower bound of about (1+2/m+3).n character compa risons is obtained. These lower bounds complement an on-line upper bou nd of about (1+8/3(m+1)).n comparisons obtained recently by Cole and H ariharan. The lower bounds are obtained by finding patterns with inter esting combinatorial properties. It is also shown that for some patter ns off-line algorithms can be more efficient than on-line algorithms.