guess the next step: Rabin-Karp
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 9 of 51
Question 7 of 47
Step 9 of 51
Step 10 of 51
Step 11 of 51
Step 12 of 51
Step 13 of 51
Step 14 of 51
Step 15 of 51
Question 7 of 47
Question 7 of 47
Not this time.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
Every letter agrees: the pattern stands at place 1. Mark it.
Question 7 of 47
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's.
What the run did:
Every letter agrees: the pattern stands at place 1. Mark it.
Question 7 of 47
Right.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
Every letter agrees: the pattern stands at place 1. Mark it.
Question 8 of 47
Question 8 of 47
Right.
You guessed: The fingerprint at the next place is 0.
What the run did:
Move the pattern on to place 2. Take a off the front of the fingerprint and add a at the end, giving 0.
Question 8 of 47
Not this time.
You guessed: The fingerprint at the next place is 1.
What the run did:
Move the pattern on to place 2. Take a off the front of the fingerprint and add a at the end, giving 0.
Question 8 of 47
Not this time.
You guessed: The fingerprint at the next place is 2.
What the run did:
Move the pattern on to place 2. Take a off the front of the fingerprint and add a at the end, giving 0.
Question 9 of 47
Question 9 of 47
Not this time.
You guessed: The fingerprint here is not the pattern's, so compare no letters.
What the run did:
The fingerprint here is 0, the same as the pattern's. Two pieces can share one, so compare the letters to be sure.
Question 9 of 47
Right.
You guessed: The fingerprint here is the pattern's, so compare the letters to be sure.
What the run did:
The fingerprint here is 0, the same as the pattern's. Two pieces can share one, so compare the letters to be sure.
Question 10 of 47
Question 10 of 47
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 10 of 47
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's.
What the run did:
The text's a at position 2 matches the pattern's a.
Question 10 of 47
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.
Question 11 of 47
Question 11 of 47
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 11 of 47
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's.
What the run did:
The text's a at position 3 matches the pattern's a.
Question 11 of 47
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 12 of 47
Question 12 of 47
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 12 of 47
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's.
What the run did:
The text's a at position 4 matches the pattern's a.
Question 12 of 47
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.