Algorithms | Analysis of Algorithms | Question 12

Last Updated :
Discuss
Comments

What is the time complexity of Floyd–Warshall algorithm to calculate all pair shortest path in a graph with n vertices?

O(n2log(n))

Theta(n2log(n))

Theta(n4)

Theta(n3)

Share your thoughts in the comments