Paper record
W2054898096Tight Bounds on the Complexity of the Boyer–Moore String Matching Algorithm
Richard J. Cole
- Year
- 1994
- Venue
- SIAM Journal on Computing
- References
- 24
- Cited by
- 81
Details and counts from OpenAlex.
Abstract
The problem of finding all occurrences of a pattern of length m in a text of length n is considered. It is shown that the Boyer–Moore string matching algorithm performs roughly comparisons and that this bound is tight up to ; more precisely, an upper bound of comparisons is shown, as is a lower bound of comparisons, as $\frac{n}{m} \to \infty $ and $m \to \infty $. While the upper bound is somewhat involved, its main elements provide a simple proof of a upper bound for the same algorithm.