1/28
Loading...
🌲Let's grow a Minimum Spanning Tree!
Starting from one node, we expand the tree one cheapest edge at a time until all nodes are connected.
Loading...
Starting from one node, we expand the tree one cheapest edge at a time until all nodes are connected.
Prim is a minimum spanning tree algorithm that starts from one node and expands step by step, using a priority queue to pick the "cheapest edge that attaches to the tree".