guess the next step: Boyer-Moore-Horspool
Before each step plays, guess what it does. The page then shows the step as the run takes it and says why, the same sentence the watch page says there.
Step 1 of 46
Question 1 of 37
Step 1 of 46
Step 2 of 46
Step 3 of 46
Step 4 of 46
Step 5 of 46
Step 6 of 46
Step 7 of 46
Step 8 of 46
Question 1 of 37
Question 1 of 37
Not this time.
You guessed: With b under its last letter, the pattern may jump 2.
What the run did:
The nearest b before the pattern's last letter stands 4 letters from its end. With b in the text under the pattern's last letter, the pattern may jump 4.
Question 1 of 37
Not this time.
You guessed: With b under its last letter, the pattern may jump 3.
What the run did:
The nearest b before the pattern's last letter stands 4 letters from its end. With b in the text under the pattern's last letter, the pattern may jump 4.
Question 1 of 37
Right.
You guessed: With b under its last letter, the pattern may jump 4.
What the run did:
The nearest b before the pattern's last letter stands 4 letters from its end. With b in the text under the pattern's last letter, the pattern may jump 4.
Question 2 of 37
Question 2 of 37
Right.
You guessed: With a under its last letter, the pattern may jump 1.
What the run did:
The nearest a before the pattern's last letter stands 1 letter from its end. With a in the text under the pattern's last letter, the pattern may jump 1.
Question 2 of 37
Not this time.
You guessed: With a under its last letter, the pattern may jump 2.
What the run did:
The nearest a before the pattern's last letter stands 1 letter from its end. With a in the text under the pattern's last letter, the pattern may jump 1.
Question 2 of 37
Not this time.
You guessed: With a under its last letter, the pattern may jump 3.
What the run did:
The nearest a before the pattern's last letter stands 1 letter from its end. With a in the text under the pattern's last letter, the pattern may jump 1.
Question 3 of 37
Question 3 of 37
Right.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
The text's a at position 5 matches the pattern's a.
Question 3 of 37
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's, so the pattern does not stand here.
What the run did:
The text's a at position 5 matches the pattern's a.
Question 3 of 37
Not this time.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
The text's a at position 5 matches the pattern's a.
Question 4 of 37
Question 4 of 37
Right.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
The text's a at position 4 matches the pattern's a.
Question 4 of 37
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's, so the pattern does not stand here.
What the run did:
The text's a at position 4 matches the pattern's a.
Question 4 of 37
Not this time.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
The text's a at position 4 matches the pattern's a.
Question 5 of 37
Question 5 of 37
Right.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
The text's a at position 3 matches the pattern's a.
Question 5 of 37
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's, so the pattern does not stand here.
What the run did:
The text's a at position 3 matches the pattern's a.
Question 5 of 37
Not this time.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
The text's a at position 3 matches the pattern's a.
Question 6 of 37
Question 6 of 37
Right.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
The text's a at position 2 matches the pattern's a.
Question 6 of 37
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's, so the pattern does not stand here.
What the run did:
The text's a at position 2 matches the pattern's a.
Question 6 of 37
Not this time.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
The text's a at position 2 matches the pattern's a.