Boyer-Moore-Horspool algorithm
The objective is to find the pattern in the word.
Drag and drop the pattern along the word. At each step, you have a current letter
A
.
You must align the pattern so that the current letter matches the corresponding last occurrence
A
. If the current letter does not appear in the pattern, you must move
forward.