Naive Algorithm Again
Same algorithm as before, but check
P
right-to-left instead.
When would this alone help?
Next:
Boyer-Moore Algorithm
Up:
BOYER-MOORE
Previous:
BOYER-MOORE