guess the next step: Edit distance
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 1 of 51
Question 1 of 49
Step 1 of 51
Step 2 of 51
Step 3 of 51
Step 4 of 51
Step 5 of 51
Step 6 of 51
Step 7 of 51
Question 1 of 49
Question 1 of 49
Right.
You guessed: This cell holds 0.
What the run did:
Both letters are r, so this cell needs no edit of its own. Copy 0 from the cell up and to the left.
Question 1 of 49
Not this time.
You guessed: This cell holds 1.
What the run did:
Both letters are r, so this cell needs no edit of its own. Copy 0 from the cell up and to the left.
Question 1 of 49
Not this time.
You guessed: This cell holds 2.
What the run did:
Both letters are r, so this cell needs no edit of its own. Copy 0 from the cell up and to the left.
Question 2 of 49
Question 2 of 49
Right.
You guessed: This cell holds 1.
What the run did:
r is not o, so take one edit more than the cheapest of above, 2, for a delete, to the left, 0, for an insert, and up and to the left, 1, for a replace: 1.
Question 2 of 49
Not this time.
You guessed: This cell holds 2.
What the run did:
r is not o, so take one edit more than the cheapest of above, 2, for a delete, to the left, 0, for an insert, and up and to the left, 1, for a replace: 1.
Question 2 of 49
Not this time.
You guessed: This cell holds 3.
What the run did:
r is not o, so take one edit more than the cheapest of above, 2, for a delete, to the left, 0, for an insert, and up and to the left, 1, for a replace: 1.
Question 3 of 49
Question 3 of 49
Not this time.
You guessed: This cell holds 1.
What the run did:
r is not t, so take one edit more than the cheapest of above, 3, for a delete, to the left, 1, for an insert, and up and to the left, 2, for a replace: 2.
Question 3 of 49
Right.
You guessed: This cell holds 2.
What the run did:
r is not t, so take one edit more than the cheapest of above, 3, for a delete, to the left, 1, for an insert, and up and to the left, 2, for a replace: 2.
Question 3 of 49
Not this time.
You guessed: This cell holds 3.
What the run did:
r is not t, so take one edit more than the cheapest of above, 3, for a delete, to the left, 1, for an insert, and up and to the left, 2, for a replace: 2.
Question 4 of 49
Question 4 of 49
Right.
You guessed: This cell holds 3.
What the run did:
r is not a, so take one edit more than the cheapest of above, 4, for a delete, to the left, 2, for an insert, and up and to the left, 3, for a replace: 3.
Question 4 of 49
Not this time.
You guessed: This cell holds 4.
What the run did:
r is not a, so take one edit more than the cheapest of above, 4, for a delete, to the left, 2, for an insert, and up and to the left, 3, for a replace: 3.
Question 4 of 49
Not this time.
You guessed: This cell holds 5.
What the run did:
r is not a, so take one edit more than the cheapest of above, 4, for a delete, to the left, 2, for an insert, and up and to the left, 3, for a replace: 3.
Question 5 of 49
Question 5 of 49
Not this time.
You guessed: This cell holds 3.
What the run did:
r is not t, so take one edit more than the cheapest of above, 5, for a delete, to the left, 3, for an insert, and up and to the left, 4, for a replace: 4.
Question 5 of 49
Right.
You guessed: This cell holds 4.
What the run did:
r is not t, so take one edit more than the cheapest of above, 5, for a delete, to the left, 3, for an insert, and up and to the left, 4, for a replace: 4.
Question 5 of 49
Not this time.
You guessed: This cell holds 5.
What the run did:
r is not t, so take one edit more than the cheapest of above, 5, for a delete, to the left, 3, for an insert, and up and to the left, 4, for a replace: 4.
Question 6 of 49
Question 6 of 49
Not this time.
You guessed: This cell holds 3.
What the run did:
r is not o, so take one edit more than the cheapest of above, 6, for a delete, to the left, 4, for an insert, and up and to the left, 5, for a replace: 5.
Question 6 of 49
Not this time.
You guessed: This cell holds 4.
What the run did:
r is not o, so take one edit more than the cheapest of above, 6, for a delete, to the left, 4, for an insert, and up and to the left, 5, for a replace: 5.
Question 6 of 49
Right.
You guessed: This cell holds 5.
What the run did:
r is not o, so take one edit more than the cheapest of above, 6, for a delete, to the left, 4, for an insert, and up and to the left, 5, for a replace: 5.