Professional Documents
Culture Documents
Examples
e
e
G G・e
G G・e
e
G G・e
This is the first example of a graph invariant that can be expressed using a
recurrence formula involving deletions and/or contractions. More to come
down the road...
A=4
0
6 0 .. 7
5= J I,
1
.
0
0 1
where J is the n ⇥ n matrix of all ones and I is the identity matrix. The
Laplacian matrix, Q, of Kn is
2 3
n 1
6
6 n 1 -1 7
7
Q=D A = (n 1)I (J I) = nI J = 666 ..
.
7
7
7
4
-1 n 1
n 1
5
? Book gives a proof of Cayley’s theorem using Prüfer codes (unique se-
quence of length n 2 assigned to a tree on n vtcs).
We may see later that one application of minimum spanning trees is for an
approximation algorithm for the Traveling Salesman Problem (TSP).
Brute-force: construct all possible spanning trees and find one with mini-
mum weight.
(Downfall – can get locked into certain choices too early which prevent them
from finding the best overall solution later.)
We also know that w(ei) w(e); otherwise, if w(ei) > w(e), then we
should have chosen e1, . . . , ei 1, e to be in T ⇤ during Kruskal’s algo-
rithm. (These edges do not have a cycle as they are all in T .)
Therefore,
w(T + ei e) = w(T ) + w(ei) w(e) w(T ).
| {z }
0
v1 v2
degree matrix D adjacency matrix A
⇥ ⇥
2 0 0 0 0 1 1 0
Spanning trees v3 v4
⇧0
D=⇧
⇤0
3
0
0
3
0⌃
⌃
0⌅
⇧1
A=⇧
⇤1
0
1
1
0
1⌃
1⌅
⌃
0 0 0 2 0 1 1 0
Math 104, Graph Theory
compute the difference D - A
Tuesday, February 5, 2013
⇥
2 1 1 0
Laplacian matrix ⇧ 1 3 1 1⌃
=) D A=⇧ ⌃
of the graph ⇤ 1 1 3 1⌅
0 1 1 2
8 distinct spanning
trees of given graph Theorem: Let G be a graph. Then
v3 v4
# of distinct the value of any cofactor
v1 v2 v1 v2 v1 v2 v1 v2
spanning trees = of the matrix D - A,
of G the Laplacian matrix of G
v3 v4 v3 v4 v3 v4 v3 v4
v1 v2 v1 v2 v1 v2 v1 v2
v3 v4 v3 v4 v3 v4 v3 v4
Kruskal’s algorithm
a 7 8 c
b
5 9 7 5
15
d e
6 8
9
f
11 g