algorithms graph-theory

Definition

Prim's Algorithm

Prim’s algorithm is a greedy algorithm that finds a minimum spanning tree for a undirected network.

For dense graphs, , prim’s algorithm is better than Kruskal’s algorithm.

Runtime