Graph Theory37 sections · 1633 units
Open in CourseQuiz: Floyd-Warshall Path Reconstruction
Knowledge check
Check Your Understanding
To reconstruct the shortest path from to in Floyd-Warshall, you store a next[i][j] matrix. If the shortest path from to goes through , what should next[i][j] store?
- A.The first vertex after on the shortest path to
- B.The vertex that minimized the path
- C.The last vertex before on the shortest path
- D.The total number of vertices on the path