Computer Science, asked by tharunkumar2590, 1 year ago

Which one is better kruhskal's algorithm or prim's algorithm?

Answers

Answered by patildurvesh08
1

Both Prim's algorithm and Kruskal's algorithm are greedy algorithms for finding the Minimum Spanning Tree. ... Prim's algorithm is found to run faster in dense graphs with more number of edges than vertices, whereas Kruskal's algorithm is found to run faster in sparse graphs.

Similar questions