guess the next step: Bellman-Ford shortest paths
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 31 of 36
Question 31 of 34
Step 31 of 36
Step 32 of 36
Step 33 of 36
Step 34 of 36
Step 35 of 36
Question 31 of 34
Question 31 of 34
Not this time.
You guessed: Through F, the way to B is shorter than any found before, so write it.
What the run did:
The road from F to B is -4 long, so through F it is 1 to B, no shorter than the 1 written there. Keep 1.
Question 31 of 34
Right.
You guessed: Through F, the way to B is no shorter, so keep what is written.
What the run did:
The road from F to B is -4 long, so through F it is 1 to B, no shorter than the 1 written there. Keep 1.
Question 32 of 34
Question 32 of 34
Not this time.
You guessed: Through F, the way to G is shorter than any found before, so write it.
What the run did:
The road from F to G is 7 long, so through F it is 12 to G, no shorter than the 4 written there. Keep 4.
Question 32 of 34
Right.
You guessed: Through F, the way to G is no shorter, so keep what is written.
What the run did:
The road from F to G is 7 long, so through F it is 12 to G, no shorter than the 4 written there. Keep 4.
Question 33 of 34
Question 33 of 34
Not this time.
You guessed: Through G, the way to H is shorter than any found before, so write it.
What the run did:
The road from G to H is 1 long, so through G it is 5 to H, no shorter than the 5 written there. Keep 5.
Question 33 of 34
Right.
You guessed: Through G, the way to H is no shorter, so keep what is written.
What the run did:
The road from G to H is 1 long, so through G it is 5 to H, no shorter than the 5 written there. Keep 5.
Question 34 of 34
Question 34 of 34
Not this time.
You guessed: Look along every road in a round.
What the run did:
Round 3 made nothing shorter, so no later round could either: every distance is final.
That is every question on this run: 0 of 34 right.
Question 34 of 34
Right.
You guessed: This round made nothing shorter, so every distance is final.
What the run did:
Round 3 made nothing shorter, so no later round could either: every distance is final.
That is every question on this run: 1 of 34 right.
Question 34 of 34
Not this time.
You guessed: That was the last round needed, so look along every road once more.
What the run did:
Round 3 made nothing shorter, so no later round could either: every distance is final.
That is every question on this run: 0 of 34 right.