Please wait a moment while we prepare your experience.
Prim's Algorithm is a greedy algorithm that finds the Minimum Spanning Tree (MST) of a weighted undirected graph. It starts from an arbitrary node and repeatedly adds the minimum weight edge that connects a visited node to an unvisited node until all nodes are visited.
| From | To | Weight | Action |
|---|---|---|---|
