Skip to content

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 19 of 31

-9-9-9-9-9-9-9-9-9-9-9-9-9A0B-9C-18D-27E-9F-18G-36H-45
The road from A to F is -9 long, so through A it is -9 to F, no shorter than the -18 written there. Keep -18.

Question 19 of 29

What happens next?

Your guess