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 7 of 31
Question 7 of 29
Step 7 of 31
Step 8 of 31
Step 9 of 31
Step 10 of 31
Step 11 of 31
Step 12 of 31
Step 13 of 31
Question 7 of 29
Question 7 of 29
Right.
You guessed: Through B, the way to G is shorter than any found before, so write it.
What the run did:
The road from B to G is -9 long, so through B it is -18 to G, shorter than any way found before. Write -18 at G.
Question 7 of 29
Not this time.
You guessed: Through B, the way to G is no shorter, so keep what is written.
What the run did:
The road from B to G is -9 long, so through B it is -18 to G, shorter than any way found before. Write -18 at G.
Question 8 of 29
Question 8 of 29
Right.
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 -9 long, so through C it is -27 to D, shorter than any way found before. Write -27 at D.
Question 8 of 29
Not this time.
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 -9 long, so through C it is -27 to D, shorter than any way found before. Write -27 at D.
Question 9 of 29
Question 9 of 29
Right.
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 -9 long, so through C it is -27 to G, shorter than any way found before. Write -27 at G.
Question 9 of 29
Not this time.
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 -9 long, so through C it is -27 to G, shorter than any way found before. Write -27 at G.
Question 10 of 29
Question 10 of 29
Right.
You guessed: Through D, the way to G is shorter than any found before, so write it.
What the run did:
The road from D to G is -9 long, so through D it is -36 to G, shorter than any way found before. Write -36 at G.
Question 10 of 29
Not this time.
You guessed: Through D, the way to G is no shorter, so keep what is written.
What the run did:
The road from D to G is -9 long, so through D it is -36 to G, shorter than any way found before. Write -36 at G.
Question 11 of 29
Question 11 of 29
Right.
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 -9 long, so through D it is -36 to H, shorter than any way found before. Write -36 at H.
Question 11 of 29
Not this time.
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 -9 long, so through D it is -36 to H, shorter than any way found before. Write -36 at H.
Question 12 of 29
Question 12 of 29
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 -9 long, so through E it is -18 to F, no shorter than the -18 written there. Keep -18.
Question 12 of 29
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 -9 long, so through E it is -18 to F, no shorter than the -18 written there. Keep -18.