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 16 of 21
Question 13 of 16
Step 16 of 21
Step 17 of 21
Step 18 of 21
Step 19 of 21
Step 20 of 21
Question 13 of 16
Question 13 of 16
Right.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
The text's r at position 6 matches the pattern's r.
Question 13 of 16
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's.
What the run did:
The text's r at position 6 matches the pattern's r.
Question 13 of 16
Not this time.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
The text's r at position 6 matches the pattern's r.
Question 14 of 16
Question 14 of 16
Right.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
The text's o at position 7 matches the pattern's o.
Question 14 of 16
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's.
What the run did:
The text's o at position 7 matches the pattern's o.
Question 14 of 16
Not this time.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
The text's o at position 7 matches the pattern's o.
Question 15 of 16
Question 15 of 16
Right.
You guessed: Another letter is compared here, and it matches the pattern's.
What the run did:
The text's o at position 8 matches the pattern's o.
Question 15 of 16
Not this time.
You guessed: Another letter is compared here, and it is not the pattern's.
What the run did:
The text's o at position 8 matches the pattern's o.
Question 15 of 16
Not this time.
You guessed: No letter is left to compare, so the pattern stands here.
What the run did:
The text's o at position 8 matches the pattern's o.
Question 16 of 16
Question 16 of 16
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 6. Mark it.
That is every question on this run: 0 of 16 right.
Question 16 of 16
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 6. Mark it.
That is every question on this run: 0 of 16 right.
Question 16 of 16
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 6. Mark it.
That is every question on this run: 1 of 16 right.