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 8 of 46
Question 7 of 37
Step 8 of 46
Step 9 of 46
Step 10 of 46
Step 11 of 46
Step 12 of 46
Step 13 of 46
Step 14 of 46
Step 15 of 46
Question 7 of 37
Question 7 of 37
Not this time.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
The text's a at position 1 is not the pattern's b, so the pattern does not stand here.
Question 7 of 37
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 a at position 1 is not the pattern's b, so the pattern does not stand here.
Question 7 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 1 is not the pattern's b, so the pattern does not stand here.
Question 8 of 37
Question 8 of 37
Not this time.
You guessed: The pattern jumps to place 1.
What the run did:
Jump the pattern on 1 place, to place 2, and compare from its last letter again.
Question 8 of 37
Right.
You guessed: The pattern jumps to place 2.
What the run did:
Jump the pattern on 1 place, to place 2, and compare from its last letter again.
Question 8 of 37
Not this time.
You guessed: The pattern jumps to place 3.
What the run did:
Jump the pattern on 1 place, to place 2, and compare from its last letter again.
Question 9 of 37
Question 9 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 6 matches the pattern's a.
Question 9 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 6 matches the pattern's a.
Question 9 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 6 matches the pattern's a.
Question 10 of 37
Question 10 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 10 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 10 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 11 of 37
Question 11 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 11 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 11 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 12 of 37
Question 12 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 12 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 12 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.