Minimal Spanning Tree
Minimal Spanning Tree
No Cycle
We start from the edges with the lowest weight and keep adding edges
until we reach our goal
We start from one vertex and keep adding edges with the lowest weight until
we reach our goal
T = ∅;
U = { 1 };
while (U ≠ V)
let (u, v) be the lowest cost edge such that u ∈ U and v ∈ V - U;
T = T ∪ {(u, v)}
U = U ∪ {v}