Boyer-Moore Algorithm
An efficient string-search algorithm that uses 'bad character' and 'good suffix' rules to skip large portions of text.
Method
Compare from the right end of the pattern; on mismatch, use precomputed tables to skip as many characters as possible.
Applications
Text-editor search, software engineering (some grep implementations), legal document retrieval.
Advantages
Usually sublinear in practice; large skips.
Limitations
Preprocessing tables require extra space; little advantage for short patterns. More complex than KMP; worst case remains O(nm) unless Galil's rule is added.
Alternatives
KMP, Rabin-Karp, Horspool (simplified version).
Editorial clarification
Source description reviewed against the method-specific reference. Volume ordering is editorial, not a measured ranking; advantages are conditional rather than benchmark results.
Sources
Educational reference only, not professional advice.
All algorithms