Teaching Kids Programming: Videos on Data Structures and Algorithms
Given a Undirected Graph, we have that: the Number of Odd Degree Vertices in a Graph is Even.
Graph G is a collection of Vertices and Edges thus:
As each edge contributes to Degree of Two (it is connected by two vertices). Thus the sum of all degrees is twice the number of edges.
Thus, we know the sum of all degrees is an even number.
Let’s assume there are N vertices, and the first
So we have:
The LHS is even as we have proved above, and the first item of the RHS is even because the first
is even. As the
Thus: we have proved that: The Number of Odd Degree Vertices in a Graph is an Even Number.
–EOF (The Ultimate Computing & Technology Blog) —
Last Post: Teaching Kids Programming - Conditions That A Connected Graph Can Be Drawn With One Stroke (Euler Path/Euler Cycle/Circuit)
Next Post: Teaching Kids Programming - Faulty Keyboard with an Inverse Key (Two Algorithms/Double-ended Queue)