Graph Theory37 sections · 1633 units
Open in Course

Quiz: Floyd-Warshall Path Reconstruction

Knowledge check

Check Your Understanding

To reconstruct the shortest path from ii to jj in Floyd-Warshall, you store a next[i][j] matrix. If the shortest path from ii to jj goes through kk, what should next[i][j] store?

  1. A.The first vertex after ii on the shortest path to jj
  2. B.The vertex kk that minimized the path
  3. C.The last vertex before jj on the shortest path
  4. D.The total number of vertices on the path
Start the roadmap to answer the quizzes and solve the challenges