Prim's Algorithm
What is Prim's Algorithm?
Prim's Algorithm is an algorithm that is used to find a minimum spanning tree (MST) in a weighted, undirected graph.
Steps:
- Pick starting node.
- Find the least-cost edge that connects a node that is not yet in the MST with one that is in the MST.
- Repeat step 2 until you have a complete MST.
Find more information here.