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 3 of 51
Question 1 of 47
Step 3 of 51
Step 4 of 51
Step 5 of 51
Step 6 of 51
Step 7 of 51
Step 8 of 51
Step 9 of 51
Question 1 of 47
Question 1 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 1 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 2 of 47
Question 2 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 1 matches the pattern's a.
Question 2 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 1 matches the pattern's a.
Question 2 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 1 matches the pattern's a.
Question 3 of 47
Question 3 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 3 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 3 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 4 of 47
Question 4 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 4 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 4 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 5 of 47
Question 5 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 5 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 5 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.
Question 6 of 47
Question 6 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 5 matches the pattern's a.
Question 6 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 5 matches the pattern's a.
Question 6 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 5 matches the pattern's a.