Title: Minimum Spanning Trees (MSTs)
1Minimum Spanning Trees (MSTs) Kruskals Algorithm
Basic idea is
Start with a forest of n vertices and no edges
Add edges to the forest in increasing order of
weight
Only add an edge if it joins together two
different sub-trees
2Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
4
3
1
e
d
b
2
4
5
3
2
c
f
3Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
4
3
1
e
d
b
2
4
5
3
2
c
f
4Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
?
3
4
3
1
e
d
b
2
4
5
3
2
c
f
5Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
?
3
4
3
1
e
d
b
2
4
5
3
2
c
f
6Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
4
3
1
?
e
d
b
2
4
5
3
2
c
f
7Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
4
3
1
?
e
d
b
2
4
5
3
2
c
f
8Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
?
3
4
3
1
e
d
b
2
4
5
3
2
c
f
9Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
?
3
4
3
1
e
d
b
2
4
5
3
2
c
f
10Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
?
3
4
3
1
e
d
b
2
4
5
3
2
c
f
11Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
?
3
4
3
1
e
d
b
2
4
5
3
2
c
f
12Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
4
3
1
e
d
b
2
4
5
3
?
2
c
f
13Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
4
3
1
e
d
b
2
4
5
3
?
2
c
f
14Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
4
3
1
e
d
b
2
4
?
5
3
2
c
f
15Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
4
3
1
e
d
b
2
4
?
5
3
2
c
f
16Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
4
3
1
?
e
d
b
2
4
5
3
2
c
f
17Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
4
3
1
?
e
d
b
2
4
5
3
2
c
f
18Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
?
4
3
1
e
d
b
2
4
5
3
2
c
f
19Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
3
?
4
3
1
e
d
b
2
4
5
3
2
c
f
20Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
?
3
4
3
1
e
d
b
2
4
5
3
2
c
f
21Minimum Spanning Trees (MSTs) Kruskals Algorithm
a
g
?
3
4
3
1
e
d
b
2
4
5
3
2
c
f