AlgoViz

Prim's algorithm

medium 22 min

A minimum spanning tree connects every vertex of a weighted, undirected graph with the least total edge weight.