mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-30 02:46:52 +08:00
Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
760 B
760 B
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: