1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. Kruskal’s algorithm is best suited for t...
Q.

Kruskal’s algorithm is best suited for the sparse graphs than the prim’s algorithm.

A. true
B. false
Answer» A. true
Explanation: prim’s algorithm and kruskal’s algorithm perform equally in case of the sparse graphs. but kruskal’s algorithm is simpler and easy to work with. so, it is best suited for sparse graphs.

Discussion