On Obtaining the Boyer-Moore String-Matching Algorithm by Partial Evaluation
AbstractWe present the first derivation of the search phase of the Boyer-Moore string-matching algorithm by partial evaluation of an inefficient string matcher. The derivation hinges on identifying the `bad-character-shift' heuristic as a binding-time improvement, bounded static variation. An inefficient string matcher incorporating this binding-time improvement specializes into the search phase of the Horspool algorithm, which is a simplified variant of the Boyer-Moore algorithm. Combining the bad-character-shift binding-time improvement with our previous results yields a new binding-time-improved string matcher that specializes into the search phase of the Boyer-Moore algorithm.
How to Cite
Danvy, O., & Rohde, H. K. (2005). On Obtaining the Boyer-Moore String-Matching Algorithm by Partial Evaluation. BRICS Report Series, 12(14). https://doi.org/10.7146/brics.v12i14.21880
Articles published in DAIMI PB are licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.