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 10 of 21
Question 7 of 16
Step 10 of 21
Step 11 of 21
Step 12 of 21
Step 13 of 21
Step 14 of 21
Step 15 of 21
Step 16 of 21
Question 7 of 16
Question 7 of 16
Not this time.
You guessed: The fingerprint at the next place is 0.
What the run did:
Move the pattern on to place 4. Take n off the front of the fingerprint and add r at the end, giving 2.
Question 7 of 16
Not this time.
You guessed: The fingerprint at the next place is 1.
What the run did:
Move the pattern on to place 4. Take n off the front of the fingerprint and add r at the end, giving 2.
Question 7 of 16
Right.
You guessed: The fingerprint at the next place is 2.
What the run did:
Move the pattern on to place 4. Take n off the front of the fingerprint and add r at the end, giving 2.
Question 8 of 16
Question 8 of 16
Right.
You guessed: The fingerprint here is not the pattern's, so compare no letters.
What the run did:
The fingerprint here is 2, not 0, so these letters cannot be the pattern. Compare none.
Question 8 of 16
Not this time.
You guessed: The fingerprint here is the pattern's, so compare the letters to be sure.
What the run did:
The fingerprint here is 2, not 0, so these letters cannot be the pattern. Compare none.
Question 9 of 16
Question 9 of 16
Not this time.
You guessed: The fingerprint at the next place is 2.
What the run did:
Move the pattern on to place 5. Take g off the front of the fingerprint and add o at the end, giving 4.
Question 9 of 16
Not this time.
You guessed: The fingerprint at the next place is 3.
What the run did:
Move the pattern on to place 5. Take g off the front of the fingerprint and add o at the end, giving 4.
Question 9 of 16
Right.
You guessed: The fingerprint at the next place is 4.
What the run did:
Move the pattern on to place 5. Take g off the front of the fingerprint and add o at the end, giving 4.
Question 10 of 16
Question 10 of 16
Right.
You guessed: The fingerprint here is not the pattern's, so compare no letters.
What the run did:
The fingerprint here is 4, not 0, so these letters cannot be the pattern. Compare none.
Question 10 of 16
Not this time.
You guessed: The fingerprint here is the pattern's, so compare the letters to be sure.
What the run did:
The fingerprint here is 4, not 0, so these letters cannot be the pattern. Compare none.
Question 11 of 16
Question 11 of 16
Right.
You guessed: The fingerprint at the next place is 0.
What the run did:
Move the pattern on to place 6. Take a off the front of the fingerprint and add o at the end, giving 0.
Question 11 of 16
Not this time.
You guessed: The fingerprint at the next place is 1.
What the run did:
Move the pattern on to place 6. Take a off the front of the fingerprint and add o at the end, giving 0.
Question 11 of 16
Not this time.
You guessed: The fingerprint at the next place is 2.
What the run did:
Move the pattern on to place 6. Take a off the front of the fingerprint and add o at the end, giving 0.
Question 12 of 16
Question 12 of 16
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 12 of 16
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.