Tight bounds on the complexity of the Ap
โ
Maxime Crochemore; Thierry Lecroq
๐
Article
๐
1997
๐
Elsevier Science
๐
English
โ 678 KB
The Apostolico-Giancarlo string-matching algorithm is analyzed precisely. We give a tight upper bound of $n text character comparisons when searching for a pattern in a text of length n. We exhibit a family of patterns and texts reaching this bound. We also provide a slightly improved version of the