• Courses
  • Tutorials
  • Practice
  • Contests
Switch to Dark Mode

Algorithms | Greedy Algorithms | Question 5

Last Updated : Jan 13, 2025
Discuss
Comments

Which of the following is true about Kruskal and Prim MST algorithms? 

Assume that Prim is implemented for adjacency list representation using Binary Heap and Kruskal is implemented using union by rank.

A

Worst case time complexity of both algorithms is same.

B

Worst case time complexity of Kruskal is better than Prim

C

Worst case time complexity of Prim is better than Kruskal

D

None of these

Share your thoughts in the comments