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 25 of 36
Question 25 of 34
Step 25 of 36
Step 26 of 36
Step 27 of 36
Step 28 of 36
Step 29 of 36
Step 30 of 36
Step 31 of 36
Question 25 of 34
Question 25 of 34
Not this time.
You guessed: Through A, the way to E is shorter than any found before, so write it.
What the run did:
The road from A to E is 2 long, so through A it is 2 to E, no shorter than the 2 written there. Keep 2.
Question 25 of 34
Right.
You guessed: Through A, the way to E is no shorter, so keep what is written.
What the run did:
The road from A to E is 2 long, so through A it is 2 to E, no shorter than the 2 written there. Keep 2.
Question 26 of 34
Question 26 of 34
Not this time.
You guessed: Through B, the way to C is shorter than any found before, so write it.
What the run did:
The road from B to C is 5 long, so through B it is 6 to C, no shorter than the 6 written there. Keep 6.
Question 26 of 34
Right.
You guessed: Through B, the way to C is no shorter, so keep what is written.
What the run did:
The road from B to C is 5 long, so through B it is 6 to C, no shorter than the 6 written there. Keep 6.
Question 27 of 34
Question 27 of 34
Not this time.
You guessed: Through C, the way to D is shorter than any found before, so write it.
What the run did:
The road from C to D is 2 long, so through C it is 8 to D, no shorter than the 8 written there. Keep 8.
Question 27 of 34
Right.
You guessed: Through C, the way to D is no shorter, so keep what is written.
What the run did:
The road from C to D is 2 long, so through C it is 8 to D, no shorter than the 8 written there. Keep 8.
Question 28 of 34
Question 28 of 34
Not this time.
You guessed: Through C, the way to G is shorter than any found before, so write it.
What the run did:
The road from C to G is -2 long, so through C it is 4 to G, no shorter than the 4 written there. Keep 4.
Question 28 of 34
Right.
You guessed: Through C, the way to G is no shorter, so keep what is written.
What the run did:
The road from C to G is -2 long, so through C it is 4 to G, no shorter than the 4 written there. Keep 4.
Question 29 of 34
Question 29 of 34
Not this time.
You guessed: Through D, the way to H is shorter than any found before, so write it.
What the run did:
The road from D to H is -3 long, so through D it is 5 to H, no shorter than the 5 written there. Keep 5.
Question 29 of 34
Right.
You guessed: Through D, the way to H is no shorter, so keep what is written.
What the run did:
The road from D to H is -3 long, so through D it is 5 to H, no shorter than the 5 written there. Keep 5.
Question 30 of 34
Question 30 of 34
Not this time.
You guessed: Through E, the way to F is shorter than any found before, so write it.
What the run did:
The road from E to F is 3 long, so through E it is 5 to F, no shorter than the 5 written there. Keep 5.
Question 30 of 34
Right.
You guessed: Through E, the way to F is no shorter, so keep what is written.
What the run did:
The road from E to F is 3 long, so through E it is 5 to F, no shorter than the 5 written there. Keep 5.