guess the next step: Dijkstra's 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 13 of 19
Question 13 of 17
Step 13 of 19
Step 14 of 19
Step 15 of 19
Step 16 of 19
Step 17 of 19
Step 18 of 19
Question 13 of 17
Question 13 of 17
Right.
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 3 long, so through G it is 10 to H, shorter than any way found before. Write 10 at H.
Question 13 of 17
Not this time.
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 3 long, so through G it is 10 to H, shorter than any way found before. Write 10 at H.
Question 14 of 17
Question 14 of 17
Not this time.
You guessed: The nearest place not settled yet is 7 away.
What the run did:
Of the places with a distance and not settled yet, C is the nearest, at 9. Settle it: any other way to C would go through a place at least as far away.
Question 14 of 17
Not this time.
You guessed: The nearest place not settled yet is 8 away.
What the run did:
Of the places with a distance and not settled yet, C is the nearest, at 9. Settle it: any other way to C would go through a place at least as far away.
Question 14 of 17
Right.
You guessed: The nearest place not settled yet is 9 away.
What the run did:
Of the places with a distance and not settled yet, C is the nearest, at 9. Settle it: any other way to C would go through a place at least as far away.
Question 15 of 17
Question 15 of 17
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 4 long, so through C it is 13 to D, shorter than any way found before. Write 13 at D.
Question 15 of 17
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 4 long, so through C it is 13 to D, shorter than any way found before. Write 13 at D.
Question 16 of 17
Question 16 of 17
Not this time.
You guessed: The nearest place not settled yet is 8 away.
What the run did:
Of the places with a distance and not settled yet, H is the nearest, at 10. Settle it: any other way to H would go through a place at least as far away.
Question 16 of 17
Not this time.
You guessed: The nearest place not settled yet is 9 away.
What the run did:
Of the places with a distance and not settled yet, H is the nearest, at 10. Settle it: any other way to H would go through a place at least as far away.
Question 16 of 17
Right.
You guessed: The nearest place not settled yet is 10 away.
What the run did:
Of the places with a distance and not settled yet, H is the nearest, at 10. Settle it: any other way to H would go through a place at least as far away.
Question 17 of 17
Question 17 of 17
Right.
You guessed: Through H, the way to D is shorter than any found before, so write it.
What the run did:
The road from H to D is 1 long, so through H it is 11 to D, shorter than any way found before. Write 11 at D.
That is every question on this run: 1 of 17 right.
Question 17 of 17
Not this time.
You guessed: Through H, the way to D is no shorter, so keep what is written.
What the run did:
The road from H to D is 1 long, so through H it is 11 to D, shorter than any way found before. Write 11 at D.
That is every question on this run: 0 of 17 right.