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 4
Question 1 of 2
Step 1 of 4
Step 2 of 4
Step 3 of 4
Question 1 of 2
Question 1 of 2
Right.
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 1 long, cheaper than any road to B found before. Write 1 at B.
Question 1 of 2
Not this time.
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 1 long, cheaper than any road to B found before. Write 1 at B.
Question 2 of 2
Question 2 of 2
Right.
You guessed: The tree now has 1 of road.
What the run did:
B has the cheapest road to the tree, 1 long from A. Join B with that road: the tree now has 1 of road.
That is every question on this run: 1 of 2 right.
Question 2 of 2
Not this time.
You guessed: The tree now has 2 of road.
What the run did:
B has the cheapest road to the tree, 1 long from A. Join B with that road: the tree now has 1 of road.
That is every question on this run: 0 of 2 right.
Question 2 of 2
Not this time.
You guessed: The tree now has 3 of road.
What the run did:
B has the cheapest road to the tree, 1 long from A. Join B with that road: the tree now has 1 of road.
That is every question on this run: 0 of 2 right.