Assume that in a network of computers any two computers can
Solution
Use Prim\'s algorithm when you have a graph with lots of edges.
Kruskal’s minimum spanning tree algorithm starts with the empty graph and then selects edges from E according to the following rule.
Repeatedly add the next lightest edge that doesn’t produce a cycle.
The correctness of Kruskal’s method follows from a certain cut property, which is general
enough to also justify a whole slew of other minimum spanning tree algorithms.
