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