An all-pairs shortest-paths problem is efficiently solved using :
Show answerHide answer
Correct answer: (D) Floyd-Warshall algorithm
Explanation
The Floyd-Warshall algorithm solves the all-pairs shortest-paths problem efficiently in O(n³) time using dynamic programming.