0
What is the time complexity of the Floyd–Warshall algorithm for finding all-pairs shortest paths in a graph with V vertices?
- AO(V²)
- BO(V³)
- CO(V² log V)
- DO(V log V)
Correct answer: B
What is the time complexity of the Floyd–Warshall algorithm for finding all-pairs shortest paths in a graph with V vertices?