






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







1
2
3
4
5
6
Here is an example of a connected graph and its minimum spanning tree:
a
b
h
c d
e
g f
i
Notice that the tree is not unique: replacing (b,c) with (a,h) yields another spanning tree with the same minimum weight.
10
1 1
1 1 1
11
Corollary.
12
13
14
15
19
a
b
h
c d
e
g f
i
a
b
h
c d
e
g f
i
20
a
b
h
c d
e
g f
i
a
b
h
c d
e
g f
i
21
a
b
h
c d
e
g f
i
a
b
h
c d
e
g f
i
22
a
b
h
c d
e
g f
i
a
b
h
c d
e
g f
i
23
MST_PRIM(G,w,r)
(u, v) is the shortest edge satisfying (1)
24
MST_PRIM(G,w,r) 1 for each u in Q do 2 key[u]:=ā 3 parent[u]:=NIL 4 key[r]:= 5 QāV[Q] 6 while Q!={} do 7 u:=EXTRACT_MIN(Q) 8 for each v in Adj[u] do 9 if v in Q and w(u,v)<key[v] 10 then parent[v]:=u 11 key[v]:=w(u,v)
28
a
b
h
c d
e
g f
i
a
b
h
c d
e
g f
i
29
a
b
h
c d
e
g f
i
a
b
h
c d
e
g f
i
30
a
b
h
c d
e
g f
i
Bottleneck spanning tree: A spanning tree of G whose largest edge weight is minimum over all spanning trees of G. The value of the bottleneck spanning tree is the weight of the maximum-weight edge in T. Theorem: A minimum spanning tree is also a bottleneck spanning tree. (Challenge problem)