Minimum Spanning Tree
Last updated
Last updated
Given an undirected graph , each edge has an edge cost . We want a tree that spans all vertices (has edges) with the minimum total cost.
Insert picture examples here
Simple Cycle: one cycle only
Cut: cut the graph into two parts.
Cutset: the edges in the cut
Blue rule: If there is no blue edge in a cutset, then take any cheapest uncolored edge and color it blue (in this cutset).
Red rule: If there is a simple cycle with no red edges, then take any most expensive uncolored edge in this cycle and color it red.
Algorithm: apply red/blue rules in any order, color all edges until edges are colored blue