Graph Theory37 sections · 1633 units
Open in CourseQuiz: Floyd-Warshall Loop Order
Knowledge check
Check Your Understanding
Floyd-Warshall uses nested loops: , , . What happens if you put as the innermost loop instead of the outermost?
- A.The algorithm runs faster due to better cache performance
- B.The algorithm produces wrong answers because intermediate vertices are not fully processed before being used
- C.The algorithm still works but uses more memory
- D.The algorithm works for undirected graphs but fails for directed ones