(algorithm)
Definition: A string matching algorithm that compares characters from the end of the pattern to its beginning. When characters don't match, searching jumps to the next matching position in the pattern.
Also known as Horspool.
See also Boyer-Moore.
Author: PEB
R. Nigel Horspool, Practical Fast Searching in Strings, Software - Practice and Experience, 10:501-506, 1980.
If you have suggestions, corrections, or comments, please get in touch with Paul E. Black.
Entry modified Mon Dec 13 16:17:22 2004.
HTML page formatted Wed Oct 26 09:47:16 2005.
Cite this as:
Paul E. Black, "Boyer-Moore-Horspool", from
Dictionary of Algorithms and Data
Structures, Paul E. Black, ed.,
NIST.
http://www.nist.gov/dads/HTML/boyerMooreHorspool.html