Log in Sign up
Back to Discover
🔢

Handshaking lemma

math Maturity 11-13

Imagine you are at a party. People shake hands. Some people shake an odd number of hands. There is a rule for this. The number of those people is always even. It is a neat trick! Can you find a pattern?

6n-graf.svg
6n-graf.svg

42 words

Imagine you are at a party. People shake hands. Some people shake an odd number of hands. There is a rule for this. The number of those people is always even.

6n-graf.svg
6n-graf.svg

Think about lines and dots. The dots are like people. The lines are like handshakes. Each line has two ends. This means every line counts twice.

6n-graf.svg
6n-graf.svg

Because of this, we can find a pattern. If you add up all the connections, you get a big number. This number is always twice the lines.

Leonhard Euler found this rule. He used it to study bridges. He looked at how to walk across them.

6n-graf.svg
6n-graf.svg

This math helps us solve many puzzles. It even works for games. It is a very cool rule to know!

126 words

Imagine you are at a party. Some people shake an odd number of hands. The handshaking lemma is a math rule about this. It says the number of people who shake an odd number of hands is always even.

6n-graf.svg
6n-graf.svg

In math, we use dots and lines to show these ideas. We call the dots vertices. We call the lines edges. The degree of a vertex is how many edges touch it. If you add up the degrees of all vertices, you get a special sum. This sum is always twice the number of edges.

6n-graf.svg
6n-graf.svg

Leonhard Euler found this rule. He used it to study the Seven Bridges of Königsberg. He wanted to know if a person could walk across every bridge once. In that city, there were four vertices with an odd degree. Because four is an even number, the rule was met. But Euler found you could not walk the bridges without repeating one.

6n-graf.svg
6n-graf.svg

This rule helps with many puzzles. It helps prove things about shapes and colors. It even helps explain why a game of Hex cannot end in a draw.

Sperner2d.svg
Sperner2d.svg

187 words

Imagine you are at a party where everyone is greeting each other. Some people might shake hands with one person, while others shake hands with three or five people. The handshaking lemma is a clever math rule about these greetings. It says that in any group, the number of people who shake an odd number of hands must be an even number. You can never have just three people who have shaken an odd number of hands. This rule works because every single handshake involves exactly two people.

6n-graf.svg
6n-graf.svg

In math, we use a special language to describe these connections. We call the people or points "vertices." We call the lines or handshakes "edges." The "degree" of a vertex is simply the number of edges touching it. There is a very important formula called the degree sum formula. It says that if you add up the degrees of every vertex, the total is always twice the number of edges. This happens because every edge has two ends, so each edge contributes twice to the total sum.

6n-graf.svg
6n-graf.svg

A famous mathematician named Leonhard Euler discovered this while solving a puzzle. He looked at the Seven Bridges of Königsberg in a city that is now called Kaliningrad. He wanted to know if someone could walk across all seven bridges exactly once. He turned the city into a graph with vertices and edges. Euler found the graph had four vertices with an odd degree. Since four is an even number, the rule was satisfied, but the bridges could not be crossed in a single tour without repeating one.

6n-graf.svg
6n-graf.svg

This simple rule helps solve many other hard problems in math. It is used in a puzzle called Sperner's lemma about coloring small triangles. It also helps explain the mountain climbing problem. In that problem, two people start at different ends of a hill and try to meet. The math shows they can stay at the same height as they move. Even the game of Hex uses this logic. The rule helps prove that a game of Hex can never end in a draw.

Sperner2d.svg
Sperner2d.svg
Mountain climbing problem.gif
Mountain climbing problem.gif

Math rules like this help us see patterns in the world around us. Whether we are looking at bridges, triangles, or board games, the connections matter. The handshaking lemma shows how counting things in two different ways can reveal a truth. It links the way we count individual points to the way we count the lines between them. By understanding these connections, we can solve puzzles that seem impossible at first. It turns a simple greeting into a powerful tool for discovery.

Sperner2d.svg
Sperner2d.svg

437 words

The handshaking lemma is a fundamental principle in graph theory. It describes a necessary relationship between the points in a network and the connections between them. In any finite undirected graph, the number of vertices that have an odd degree must be an even number. This rule is a direct consequence of the degree sum formula. This formula states that the sum of the degrees of all vertices is exactly twice the number of edges in the graph.

6n-graf.svg
6n-graf.svg

To understand how this works, we must define the components of a graph. An undirected graph consists of a system of vertices, which are the points or nodes. It also contains edges, which are the lines connecting pairs of vertices. The degree of a vertex is the number of edges that touch it as an endpoint. If a graph includes a loop, which is an edge connecting a vertex to itself, that loop contributes two units to the degree of that vertex. Because every single edge has exactly two endpoints, every edge adds exactly two to the total sum of degrees. Therefore, the total sum must always be an even number.

This mathematical mechanism creates specific constraints for different types of graphs. In a bipartite graph, the vertices are split into two separate subsets. Every edge must connect a vertex from one subset to a vertex in the other. In such a system, the sum of the degrees in each subset must equal the total number of edges. For biregular graphs, where every vertex in a specific subset has the same degree, these proportions are strictly fixed. The lemma also applies to subgraphs and their connected components. It ensures that within any part of a larger network, the even-parity rule for odd nodes remains intact.

Leonhard Euler first proved this lemma through his study of the Seven Bridges of Königsberg. The city of Königsberg, now known as Kaliningrad, featured seven bridges that people wanted to cross. Euler modeled the city as a graph where landmasses were vertices and bridges were edges. He investigated whether an Euler tour or an Euler path could exist. An Euler tour is a walk that traverses every edge exactly once and returns to the start. An Euler path traverses every edge once but ends at a different vertex. Euler showed that a tour requires zero odd vertices, while a path requires exactly two.

6n-graf.svg
6n-graf.svg

In the specific case of the Seven Bridges of Königsberg, the graph had four vertices with an odd degree. Because four is an even number, the lemma was satisfied, but the specific requirement for a path or tour was not. It was impossible to cross all seven bridges without repeating one. This discovery helped formalize the entire field of graph theory. Today, the lemma's significance is seen in complex algorithms. For example, the Christofides–Serdyukov algorithm uses the geometric properties of the degree sum formula to approximate solutions for the traveling salesperson problem.

Beyond simple paths, the lemma is used to prove complex combinatorial structures. In any cubic graph, there must be an even number of Hamiltonian cycles passing through a fixed edge. A Hamiltonian cycle is a path that visits every vertex exactly once. Mathematicians use "exchange graphs" to prove such properties. By creating a graph where vertices represent different paths, they can apply the handshaking lemma to show that certain configurations must exist in even numbers. This logic helps prove that certain mathematical objects are not just possible, but must exist in specific quantities.

Other fascinating applications include Sperner's lemma and the mountain climbing problem. Sperner's lemma deals with coloring small triangles within a larger subdivided triangle. The lemma proves that at least one small triangle must contain all three colors.

Sperner2d.svg
Sperner2d.svg
Similarly, the mountain climbing problem uses the lemma to show that two people starting at opposite ends of a hill can coordinate their movement to meet in the middle while staying at equal heights.
Mountain climbing problem.gif
Mountain climbing problem.gif
Even the game of Hex relies on this logic. The lemma proves that a game of Hex cannot end in a draw because the graph formed by the board must contain a winning path.
Sperner2d.svg
Sperner2d.svg

693 words
🖼️ Images & Media (4)
File:6n-graf.svg
6n-graf.svg
File:Sperner2d.svg
Sperner2d.svg
File:Mountain climbing problem.gif
Mountain climbing problem.gif
File:Infinite graph one direction.svg
Infinite graph one direction.svg
Up Next
🔢
Degree (graph theory)
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.