Back to Developer Roadmap

Prim's Algorithm

src/data/roadmaps/computer-science/content/[email protected]

4.0862 B
Original Source

Prim's Algorithm

Prim's algorithm is a greedy algorithm that finds a minimum spanning tree for a weighted undirected graph. A minimum spanning tree is a subset of the edges of a connected, edge-weighted undirected graph that connects all the vertices together, without any cycles and with the minimum possible total edge weight. A minimum spanning tree for a weighted undirected graph is also called a minimum weight spanning tree or minimum cost spanning tree.

Visit the following resources to learn more: