Back to Search
Start Over
A unifying look at the Apostolico–Giancarlo string-matching algorithm.
- Source :
- Journal of Discrete Algorithms; Feb2003, Vol. 1 Issue 1, p37, 16p
- Publication Year :
- 2003
-
Abstract
- String matching is the problem of finding all the occurrences of a pattern in a text. We present a new method to compute the combinatorial shift function (“matching shift”) of the well-known Boyer–Moore string matching algorithm. This method implies the computation of the length of the longest suffixes of the pattern ending at each position in this pattern. These values constituted an extra-preprocessing for a variant of the Boyer–Moore algorithm designed by Apostolico and Giancarlo. We give here a new presentation of this algorithm that avoids extra preprocessing together with a tight bound of <f>1.5n</f> character comparisons (where <f>n</f> is the length of the text). [Copyright &y& Elsevier]
- Subjects :
- MATCHING theory
BRANCH & bound algorithms
COMBINATORICS
ALGORITHMS
Subjects
Details
- Language :
- English
- ISSN :
- 15708667
- Volume :
- 1
- Issue :
- 1
- Database :
- Supplemental Index
- Journal :
- Journal of Discrete Algorithms
- Publication Type :
- Academic Journal
- Accession number :
- 12345691
- Full Text :
- https://doi.org/10.1016/S1570-8667(03)00005-4