15 Handshaking
15 Handshaking
Outline
Handshaking Lemma
Total Degree
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
1
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
1
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
1
1
1
1
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
1
1
1
1
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
1
2
1
1
1
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
1
2
1
1
1
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
1
3
1
1
1
1
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
1
3
1
1
1
1
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
2
4
1
1
1
1
Revisiting a Puzzle
Puzzle
Is it possible to connect some pairs of
nine points by segments so that each
point is connected to five other points?
2
4 the number of odd points
1 is always even, hence we
1 will never reach a situation
when there are 9 points
1 of degree 5
1
Handshaking
∑
degree(v) = 2 · |E| .
v∈V
Degree Sum
Formula
Lemma
For any graph G(V, E), the sum of degrees
of all its nodes is twice the number of
edges:
∑
degree(v) = 2 · |E| .
v∈V
2 3
1 2
Example
3 5
2 3
1 2
3+5+3+2+1+2=2
·8
Proof
3 5
2 3
1 2
Proof
3 5
2 3
1 2
0 0
0 0
0 0
0 0
0 0
1
0 0
0
1 0
1
0 0
0
1 0
1
2
0 0
0
1 0
1
2
0 0
1
0
1
2 0
1
3
2
0 0
1
0
1
2 0
1
3
2
0
1 0
1
0
1
2 0
1
3
2
0
1 0
1
0
1
2 0
1
3
2
0
1 0
1
2
0
1
2 0
1
3
2
0
1 0
1
2
0
1
2 0
1
3
2
0
1 0
1
2
Handshaking Lemma
Total Degree
Exa
Problem m
At an exam, each of 20 students
solved 3 problems. Each problem was
solved by 5 students. What was the
number of problems?
https://commons.wikimedia.org/wiki/File%3AATC_Admission_Exam.JPG
Solution
20 students
In Graph
Terms
20 students k problems
In Graph
Terms
20 students k problems
In Graph
Terms
20 students k problems
In Graph
Terms
20 students k problems
In Graph
Terms
20 students k problems
20 × 3 = |E| = 5 ×
k
In Graph
Terms
20 students k problems
k = 12
Summary