guess the next step: Prim's cheapest links
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 22
Question 1 of 20
Step 1 of 22
Step 2 of 22
Step 3 of 22
Step 4 of 22
Step 5 of 22
Step 6 of 22
Step 7 of 22
Question 1 of 20
Question 1 of 20
Right.
You guessed: The road from F to A is cheaper than any found before, so write it.
What the run did:
The road from F to A is 99 long, cheaper than any road to A found before. Write 99 at A.
Question 1 of 20
Not this time.
You guessed: The road from F to A is no cheaper, so keep what is written.
What the run did:
The road from F to A is 99 long, cheaper than any road to A found before. Write 99 at A.
Question 2 of 20
Question 2 of 20
Right.
You guessed: The road from F to B is cheaper than any found before, so write it.
What the run did:
The road from F to B is 99 long, cheaper than any road to B found before. Write 99 at B.
Question 2 of 20
Not this time.
You guessed: The road from F to B is no cheaper, so keep what is written.
What the run did:
The road from F to B is 99 long, cheaper than any road to B found before. Write 99 at B.
Question 3 of 20
Question 3 of 20
Right.
You guessed: The road from F to E is cheaper than any found before, so write it.
What the run did:
The road from F to E is 99 long, cheaper than any road to E found before. Write 99 at E.
Question 3 of 20
Not this time.
You guessed: The road from F to E is no cheaper, so keep what is written.
What the run did:
The road from F to E is 99 long, cheaper than any road to E found before. Write 99 at E.
Question 4 of 20
Question 4 of 20
Right.
You guessed: The road from F to G is cheaper than any found before, so write it.
What the run did:
The road from F to G is 99 long, cheaper than any road to G found before. Write 99 at G.
Question 4 of 20
Not this time.
You guessed: The road from F to G is no cheaper, so keep what is written.
What the run did:
The road from F to G is 99 long, cheaper than any road to G found before. Write 99 at G.
Question 5 of 20
Question 5 of 20
Not this time.
You guessed: The tree now has 97 of road.
What the run did:
A has the cheapest road to the tree, 99 long from F. Join A with that road: the tree now has 99 of road.
Question 5 of 20
Not this time.
You guessed: The tree now has 98 of road.
What the run did:
A has the cheapest road to the tree, 99 long from F. Join A with that road: the tree now has 99 of road.
Question 5 of 20
Right.
You guessed: The tree now has 99 of road.
What the run did:
A has the cheapest road to the tree, 99 long from F. Join A with that road: the tree now has 99 of road.
Question 6 of 20
Question 6 of 20
Not this time.
You guessed: The road from A to B is cheaper than any found before, so write it.
What the run did:
The road from A to B is 99 long, no cheaper than the 99 written there. Keep 99.
Question 6 of 20
Right.
You guessed: The road from A to B is no cheaper, so keep what is written.
What the run did:
The road from A to B is 99 long, no cheaper than the 99 written there. Keep 99.