Which one is better kruhskal's algorithm or prim's algorithm?
Answers
Answered by
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
Physics,
8 months ago