v
deg(v) = 2e,
where e is the number of edges of a graph. The left-hand side is the sum
of degrees of all the vertices v of a graph. We will simply take this fact as
granted and not prove it. We can rewrite this identity as
odd vertices v
deg(v) +
even vertices v
deg(v) = 2e.
Here we group all the odd vertices and all the even vertices into two sums.
Note that
even vertices v
deg(v) is always an even integer as it is the sum of
even integers.
(GCNU1026) Smart Decisions Chapter 1 24 / 27
Handshaking Theorem
Then we rewrite the identity as
odd vertices v
deg(v) = 2e
even vertices v
deg(v).
Note that the right-hand side is an even integer. Now, if you look at the
left-hand side, when is a sum of odd integers even? A sum of odd integers
is even only if there are even number of odd integers. In our case, it means
there are even number of odd vertices, which proves what we want.
(GCNU1026) Smart Decisions Chapter 1 25 / 27
Handshaking Theorem
What does this theorem have to do with handshaking?
Lets imagine you are in the Ocamp, and you shake hands with others.
Lets count the number of handshakes of all the people in the Ocamp.
When you shake hands with others, you count it once. The person who
shakes hands with you also counts once. Thus whenever there is a
handshake in Ocamp, the number of handshakes is 2, not 1. Thus the
number of total handshakes must be even. Indeed, the number of total
handshakes is twice of number of hands!
(GCNU1026) Smart Decisions Chapter 1 26 / 27
Handshaking Theorem
What does this theorem have to do with handshaking?
Lets imagine you are in the Ocamp, and you shake hands with others.
Lets count the number of handshakes of all the people in the Ocamp.
When you shake hands with others, you count it once. The person who
shakes hands with you also counts once. Thus whenever there is a
handshake in Ocamp, the number of handshakes is 2, not 1. Thus the
number of total handshakes must be even. Indeed, the number of total
handshakes is twice of number of hands!
(GCNU1026) Smart Decisions Chapter 1 26 / 27
Handshaking Theorem
If you think of
people vertices,
hands edges,
shaking hands with people an edge connects a vertex,
number of handshakes degree of vertices,
then the number of the total handshakes the total degree of all the
vertices are even. That is
v
deg(v) = 2e,
where we recall that the right-hand side represents twice the number of
edges.
(GCNU1026) Smart Decisions Chapter 1 27 / 27