Nepedia
Back to Discover
Fluent Reader
🔢

Hamiltonian path

math Maturity 11-13 Next article →

Imagine a map made of dots connected by lines. In math, we call these dots vertices and the lines edges. A Hamiltonian path is a special way to travel through this map. You must follow the lines to visit every single dot exactly once. If you find a path that ends where it started, you have found a Hamiltonian cycle. This cycle is like a complete loop that touches every point on the map.

Hamiltonian
Hamiltonian

Not every map allows for these special paths. Some maps are called traceable if they have a path. Others are called Hamiltonian if they have a full cycle.

Натурализация гамильтоновых циклов
Натурализация гамильтоновых циклов

There are different ways to look at these paths. A graph is called Hamiltonian-connected if you can find a path between any two dots. You can also have a Hamiltonian decomposition, which means splitting all the lines into several cycles. Some paths are directed, meaning the lines have arrows that show which way you must go. You can only move from the tail of an arrow to its head. Finding these paths can be a very hard job for computers. This difficulty is part of a category of problems called NP-complete.

Натурализация гамильтоновых циклов
Натурализация гамильтоновых циклов

These ideas have been around for a very long time. In the 9th century, mathematicians in India and the Islamic world studied them. They looked at the knight's tour on a chessboard. This is a path where a knight visits every square once. Later, in the 18th century, Abraham de Moivre and Leonhard Euler published work on these tours. William Rowan Hamilton gave his name to these paths through a puzzle. He created the icosian game using a shape called a dodecahedron.

Hamiltonian
Hamiltonian

Even before Hamilton, others were looking at these shapes. Thomas Kirkman studied cycles in polyhedra one year before Hamilton. He even found a shape that had no Hamiltonian cycle at all. The Herschel graph is another famous example of a shape without a cycle. It is the smallest possible polyhedral graph that lacks a Hamiltonian cycle.

Herschel Hamiltonian path
Herschel Hamiltonian path

Mathematicians like Dirac and Ore also found rules for these paths. They discovered that a graph is more likely to have a cycle if it has enough edges. In 1972, the Bondy-Chvátal theorem provided an even better way to describe these graphs.

You can see these patterns in many places. Every platonic solid is considered a Hamiltonian graph. A complete graph with more than two vertices is also Hamiltonian. You can even find these paths in the way we move through certain mathematical groups. Some people use these ideas to create logic puzzles called Hamilton mazes. The goal is to find the one unique cycle hidden in the map. It is a way to turn math into a game of discovery.

Herschel Hamiltonian path
Herschel Hamiltonian path
456 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Hamiltonian.png
Hamiltonian.png
File:Натурализация гамильтоновых циклов.jpg
Натурализация гамильтоновых циклов.jpg
File:Herschel Hamiltonian path.svg
Herschel Hamiltonian path.svg
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.