Prim's algorithm
Prim's algorithm is a greedy algorithm that finds a minimum spanning tree by repeatedly adding the least-weight edge connecting the growing tree to a new vertex.
Prim's algorithm is a greedy algorithm that finds a minimum spanning tree by repeatedly adding the least-weight edge connecting the growing tree to a new vertex.