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 15 of 46
Question 13 of 37
Step 15 of 46
Step 16 of 46
Step 17 of 46
Step 18 of 46
Step 19 of 46
Step 20 of 46
Step 21 of 46
Step 22 of 46
Question 13 of 37
Question 13 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 2 is not the pattern's b, so the pattern does not stand here.
Question 13 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 2 is not the pattern's b, so the pattern does not stand here.
Question 13 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 is not the pattern's b, so the pattern does not stand here.
Question 14 of 37
Question 14 of 37
Right.
You guessed: The pattern jumps to place 3.
What the run did:
Jump the pattern on 1 place, to place 3, and compare from its last letter again.
Question 14 of 37
Not this time.
You guessed: The pattern jumps to place 4.
What the run did:
Jump the pattern on 1 place, to place 3, and compare from its last letter again.
Question 14 of 37
Not this time.
You guessed: The pattern jumps to place 5.
What the run did:
Jump the pattern on 1 place, to place 3, and compare from its last letter again.
Question 15 of 37
Question 15 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 7 matches the pattern's a.
Question 15 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 7 matches the pattern's a.
Question 15 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 7 matches the pattern's a.
Question 16 of 37
Question 16 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 16 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 16 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 17 of 37
Question 17 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 17 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 17 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 18 of 37
Question 18 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 18 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 18 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.