https://www.linkedin.com/in/jahidul-arafat-presidential-fellow-phd-student-791a7490/
Prim's algorithm finds the minimum spanning tree (MST) of a connected weighted undirected graph. It grows the MST one vertex at a time, always adding the lowest-weight edge that connects a vertex in the MST to a vertex outside the MST.
Starting node: 0
| Step | Edge | Weight | Reason for Selection |
|---|
Create your own graph below. Add nodes, then add edges between them with weights. When you're ready, run Prim's algorithm to find the minimum spanning tree.
| From | To | Weight |
|---|