PA of Algorithms Q88

0. In the following table, the left column contains the names of standard graph algorithms and the right column contains the time complexities of the algorithms. Match each algorithm with its time complexity.
List-IList-II
1.Bellman-Ford algorithmA.O(mlog n)
2.Kruskal's algorithmB.O(n3)
3.Floyd-Warshall algorithmC.O(nm)
4.Topological sortingD.O(n + m)

  • Option : A
  • Explanation :
    Bellman ford = O(n*m)
    Kruskal’s Alqo = O(m logn)
    Floyd war shall = O(n3)
    Topological sort = O(n+m)
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *