Horspool's algorithm

Horspool's algorithm