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 13
Question 1 of 7
Step 1 of 13
Step 2 of 13
Step 3 of 13
Step 4 of 13
Step 5 of 13
Step 6 of 13
Step 7 of 13
Step 8 of 13
Step 9 of 13
Step 10 of 13
Question 1 of 7
Question 1 of 7
Not this time.
You guessed: With z under its last letter, the pattern may jump 1.
What the run did:
The nearest z before the pattern's last letter stands 2 letters from its end. With z in the text under the pattern's last letter, the pattern may jump 2.
Question 1 of 7
Right.
You guessed: With z under its last letter, the pattern may jump 2.
What the run did:
The nearest z before the pattern's last letter stands 2 letters from its end. With z in the text under the pattern's last letter, the pattern may jump 2.
Question 1 of 7
Not this time.
You guessed: With z under its last letter, the pattern may jump 3.
What the run did:
The nearest z before the pattern's last letter stands 2 letters from its end. With z in the text under the pattern's last letter, the pattern may jump 2.
Question 2 of 7
Question 2 of 7
Right.
You guessed: With o under its last letter, the pattern may jump 1.
What the run did:
The nearest o before the pattern's last letter stands 1 letter from its end. With o in the text under the pattern's last letter, the pattern may jump 1.
Question 2 of 7
Not this time.
You guessed: With o under its last letter, the pattern may jump 2.
What the run did:
The nearest o before the pattern's last letter stands 1 letter from its end. With o in the text under the pattern's last letter, the pattern may jump 1.
Question 2 of 7
Not this time.
You guessed: With o under its last letter, the pattern may jump 3.
What the run did:
The nearest o before the pattern's last letter stands 1 letter from its end. With o in the text under the pattern's last letter, the pattern may jump 1.
Question 3 of 7
Question 3 of 7
Not this time.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
The text's e at position 3 is not the pattern's o, so the pattern does not stand here.
Question 3 of 7
Right.
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 e at position 3 is not the pattern's o, so the pattern does not stand here.
Question 3 of 7
Not this time.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
The text's e at position 3 is not the pattern's o, so the pattern does not stand here.
Question 4 of 7
Question 4 of 7
Not this time.
You guessed: The pattern jumps to place 2.
What the run did:
Jump the pattern on 3 places, to place 4, and compare from its last letter again.
Question 4 of 7
Not this time.
You guessed: The pattern jumps to place 3.
What the run did:
Jump the pattern on 3 places, to place 4, and compare from its last letter again.
Question 4 of 7
Right.
You guessed: The pattern jumps to place 4.
What the run did:
Jump the pattern on 3 places, to place 4, and compare from its last letter again.
Question 5 of 7
Question 5 of 7
Not this time.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
The text's t at position 6 is not the pattern's o, so the pattern does not stand here.
Question 5 of 7
Right.
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 t at position 6 is not the pattern's o, so the pattern does not stand here.
Question 5 of 7
Not this time.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
The text's t at position 6 is not the pattern's o, so the pattern does not stand here.
Question 6 of 7
Question 6 of 7
Not this time.
You guessed: The pattern jumps to place 5.
What the run did:
Jump the pattern on 3 places, to place 7, and compare from its last letter again.
Question 6 of 7
Not this time.
You guessed: The pattern jumps to place 6.
What the run did:
Jump the pattern on 3 places, to place 7, and compare from its last letter again.
Question 6 of 7
Right.
You guessed: The pattern jumps to place 7.
What the run did:
Jump the pattern on 3 places, to place 7, and compare from its last letter again.