Slides10 - Minimum Spanning Tree
Slides10 - Minimum Spanning Tree
A Network Design
Problem
Given: undirected graph G =
(V, E) with edge costs ce > 0 5"
b" c" 2"
1"
8"
a" 3" 7" d"
Find: edge subset T ⊆ E such
4" 6"
that (V, T) is connected and e"
9"
f"
Proof on board
T = {}
While |T| < n-1 { // (V, T) is not connected
Pick “best” edge e that does not create a
cycle when added to T
T = T ∪ {e}
}
Kruskal’s Algorithm
Grow many small trees
Example on board
Prim’s Algorithm
Grow a tree outward from starting node s
T = {}
S = {s} // connected nodes
While |T| < n-1 {
Let e = (u, v) be the minimum cost edge from
S to V-S
T = T ∪ {e}
S = S ∪ {v}
}
Example on board
Analysis: Cut Property
Simplifying assumption. All edge weights are
distinct.
Easier? Harder?
Spatial Conservation
Planning
" !"#$%#