Floyd–Warshall algorithm utilizes ............. to solve the all-pairs shortest paths problem on a directed graph in .............. time.
Show answerHide answer
Correct answer: (C) Dynamic programming, Θ(V³)
Explanation
The Floyd–Warshall algorithm uses dynamic programming and compares all possible paths through the graph between each pair of vertices. It does this with Θ(|V|³) comparisons.