Week 11.3 Graphs02
Week 11.3 Graphs02
5)
Homework
▶ Homework 8: Grades released on Gradescope and Solution
posted on Brightspace
▶ Statistics: Mean=84.27, Median=89, Std Dev=15.3
▶ Regrade requests open until Tuesday April 2nd at 11:00pm
▶ Homework 9: Due Friday April 5th at 11:00pm EST on
Gradescope
Connectivity
b h z
u v
y g
d c
a
x w f
e
▶ Connection is an equivalence relation.
▶ Reflexive: trivial.
▶ Symmetric: If there is a path from u to v , then there is a path
from v to u.
▶ Transitive: If there is a path from u to v and a path from v to
w , then there is a path from u to w .
▶ The equivalence classes are called connected components.
▶ The example has three connected components.
Connected Components 2
[Proof]
▶ G has an Euler circuit → each of its vertices has even degree.
▶ by tracing the graph
▶ each time the circuit passes througth a vertex, it contributes
two to the vertex’s degree.
▶ Each of the vertices of G has even degree → G has an Euler
circuit.
▶ by constructing an Euler circuit (Hierholzer’s Algorithm).
Hierholzer’s Algorithm
[Solution]
▶ G1 and G2 have Euler paths.
▶ G3 does not have an Euler path.
Applications
[DIRAC’S THEOREM]
If G is a simple graph with n vertices with n ≥ 3 such that the
degree of every vertex in G is at least n/2, then G has a Hamilton
circuit.
[ORE’S THEOREM]
If G is a simple graph with n vertices with n ≥ 3 such that
deg (u) + deg (v ) ≥ n for every pair of nonadjacent vertices u and
v in G , then G has a Hamilton circuit.
[Note]
▶ Graph C5 has a Hamilton circuit but does not satisfy the
hypotheses of either theorems.
▶ These theorems do not provide necessary conditions for the
existence of a Hamilton circuit.
Examples
[KR 10.5 Exercises 45]: For which values of m and n does the
complete bipartite graph Km,n have a Hamilton circuit?
Answer: m = n ≥ 2
Application of Hamilton Circuits
KR 10.5:
▶ 1, 3, 5, 7, 9
▶ 11, 13, 15, 17, 19
▶ 21, 23, 25, 27, 29
▶ 31, 33, 35, 37, 39
▶ 41, 43, 45, 47