guess the next step: Floyd-Warshall, every pair
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 1 of 56
Question 1 of 54
Step 1 of 56
Step 2 of 56
Step 3 of 56
Step 4 of 56
Step 5 of 56
Step 6 of 56
Step 7 of 56
Question 1 of 54
Question 1 of 54
Not this time.
You guessed: Going through the stop makes another way shorter.
What the run did:
Allow A as a stop on the way. For every pair of the other places, try going through A.
Question 1 of 54
Right.
You guessed: No other way gets shorter through this stop, so allow the next place.
What the run did:
Allow A as a stop on the way. For every pair of the other places, try going through A.
Question 2 of 54
Question 2 of 54
Right.
You guessed: Going through the stop makes another way shorter.
What the run did:
From E to A is 2, and from A to B is 3: 5 in all, shorter than any way found before. Write 5 for E to B.
Question 2 of 54
Not this time.
You guessed: No other way gets shorter through this stop, so allow the next place.
What the run did:
From E to A is 2, and from A to B is 3: 5 in all, shorter than any way found before. Write 5 for E to B.
Question 3 of 54
Question 3 of 54
Not this time.
You guessed: Going through the stop makes another way shorter.
What the run did:
Allow B as a stop on the way. For every pair of the other places, try going through B.
Question 3 of 54
Right.
You guessed: No other way gets shorter through this stop, so allow the next place.
What the run did:
Allow B as a stop on the way. For every pair of the other places, try going through B.
Question 4 of 54
Question 4 of 54
Right.
You guessed: Going through the stop makes another way shorter.
What the run did:
From A to B is 3, and from B to C is 4: 7 in all, shorter than any way found before. Write 7 for A to C.
Question 4 of 54
Not this time.
You guessed: No other way gets shorter through this stop, so allow the next place.
What the run did:
From A to B is 3, and from B to C is 4: 7 in all, shorter than any way found before. Write 7 for A to C.
Question 5 of 54
Question 5 of 54
Right.
You guessed: Going through the stop makes another way shorter.
What the run did:
From A to B is 3, and from B to F is 2: 5 in all, shorter than any way found before. Write 5 for A to F.
Question 5 of 54
Not this time.
You guessed: No other way gets shorter through this stop, so allow the next place.
What the run did:
From A to B is 3, and from B to F is 2: 5 in all, shorter than any way found before. Write 5 for A to F.
Question 6 of 54
Question 6 of 54
Right.
You guessed: Going through the stop makes another way shorter.
What the run did:
From E to B is 5, and from B to C is 4: 9 in all, shorter than any way found before. Write 9 for E to C.
Question 6 of 54
Not this time.
You guessed: No other way gets shorter through this stop, so allow the next place.
What the run did:
From E to B is 5, and from B to C is 4: 9 in all, shorter than any way found before. Write 9 for E to C.