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

Nam Phong

New member
Kruskal’s algorithm is best suited for the dense graphs than the prim’s algorithm.
A. True
B. False
 
Answer: b
Explanation: Prim’s algorithm outperforms the Kruskal’s algorithm in case of the dense graphs. It is significantly faster if graph has more edges than the Kruskal’s algorithm.
 

Tìm kiếm

Back
Top