Hamilton's Icosian game Image: Created by Rupert Clayton, CC BY 2.5

Hamilton's Icosian game

A regular dodecahedron has twelve pentagonal faces, thirty edges, and twenty corners. In 1857 William Rowan Hamilton, the Irish mathematician who had invented quaternions fourteen years earlier, presented a puzzle at a meeting of the British Association in Dublin: travel along the edges of the dodecahedron, visit each of the twenty corners exactly once, and return to the start. Two years later he sold the puzzle to John Jaques and Son, a London maker of games, for 25 pounds. It was published in 1859 as the Icosian Game and, in a second form on a pegged dodecahedron, as the Traveller's Dodecahedron, or A Voyage Round the World, with the corners named after twenty cities from Brussels to Zanzibar. Few copies were sold, and fewer survive.

Where the problem came from

Hamilton was not the first to ask about such tours. Thomas Kirkman, a rector in Lancashire and one of the strongest amateur mathematicians of the century, had asked in a paper of 1856 which polyhedra admit a closed path along their edges through every vertex, and had shown that some do not: a polyhedron with an odd number of vertices in which every face has an even number of sides has no such path, since a cycle would have to alternate between two sets of vertices of equal size. Kirkman, who is the subject of a MacTutor biography, had the general question. Hamilton had the dodecahedron and a reason of his own to care about it.

The reason was algebra. Hamilton had been studying what he called the icosian calculus, a system of symbols for the rotations of the icosahedron, which has the same symmetry as the dodecahedron. In that calculus a closed tour of the dodecahedron is a word in three symbols that reduces to the identity, and Hamilton found such words and turned them into a game. The name Icosian refers to the icosahedron, the dual solid, whose twenty faces correspond to the twenty corners of the dodecahedron.

The game and its solutions

The published board is a flat drawing of the dodecahedron, a pentagon inside a pentagon inside a pentagon with the corners joined, which is a planar drawing of the graph with twenty vertices and thirty edges. Pegs numbered 1 to 20 are placed in holes at the vertices. In the simplest version the player places the first five pegs along a path chosen by an opponent and must complete the tour. The instructions list harder variants, among them finding a tour whose first and last cities are specified, and finding a path that visits all cities without returning.

The game has many solutions, and that is why it failed as a product. A reader with the drawing in front of them finds a tour in a few minutes. Édouard Lucas, in his Récréations mathématiques of the 1880s, gave a description of what every solution looks like: the tour cuts the twelve faces into two bands of six pentagons each, and winds through them with two shallow left turns followed by two shallow right turns. The puzzle was too easy for the Victorian parlour, which was buying far harder things from the same manufacturer. The Puzzle Museum has photographs of a surviving board and its instruction leaflet.

Why the name stuck

A cycle through every vertex of a graph is now called a Hamilton cycle, and a graph that has one is Hamiltonian. The name came into use in the twentieth century and is, by the standards of priority, unfair to Kirkman. It is also fair in one way: Hamilton's game made the problem concrete, and the dodecahedron graph is the example every treatment of the subject starts with.

The contrast with Euler is the point. Euler's problem of 1736 asks for a closed walk using every edge once; it is decided by looking at the degrees, in a moment, by a rule a child can apply. Hamilton's problem asks for a closed walk using every vertex once; it looks like the same kind of question and is not. There is no rule. Some sufficient conditions are known: Dirac's theorem of 1952 says that a graph on n vertices in which every vertex has at least n/2 neighbours has a Hamilton cycle, and Ore extended it in 1960. The dodecahedron has degree 3, far below 10, so the theorems say nothing about it; its tour has to be found. The Petersen graph, with ten vertices and degree 3, looks much like a piece of the dodecahedron and has no Hamilton cycle at all, a fact that Unit 3 of the Graph Theory Masterclass proves by cases.

Hard in the precise sense

In 1972 Richard Karp showed that deciding whether a graph has a Hamilton cycle is NP-complete, one of the 21 problems in his paper that started the subject. The meaning, in words, is that if anyone finds a method that decides the question in a number of steps bounded by a polynomial in the number of vertices, then every problem whose solutions can be checked quickly can also be solved quickly, and a thousand problems in scheduling, design, and cryptography fall with it. Nobody expects that, and nobody can prove it false: whether P equals NP is one of the seven problems for which the Clay Mathematics Institute has offered a million dollars since 2000. Unit 8 sorts the problems of the masterclass into the easy ones (Euler tours, shortest paths, spanning trees, matchings, planarity) and the hard ones (Hamilton cycles, three-colouring, the largest clique).

Hard means hard in the worst case. The travelling salesman problem, which asks for the shortest tour through given cities and contains the Hamilton cycle problem as a special case, is solved every day for thousands of cities by methods that give up the guarantee of polynomial time and use clever bounds instead; an optimal tour through 85,900 points was found in 2006. What nobody has is a method that is guaranteed to be fast on every graph, and Karp's theorem is the reason to believe there is none.

Tait's conjecture

One more thread runs from the game. In 1884 Peter Guthrie Tait conjectured that every polyhedron whose corners all have three edges has a Hamilton cycle. Had it been true, the four colour theorem would have followed in a few lines, because a Hamilton cycle on such a polyhedron lets one colour its faces with four colours by hand. The conjecture stood for 62 years. In 1946 William Tutte built a polyhedron with 46 vertices and no Hamilton cycle, now called the Tutte graph, and the four colour theorem had to wait another thirty years for a different kind of proof. Smaller counterexamples were found later; the smallest has 38 vertices.

Hamilton's biography on MacTutor gives the game two sentences, and that is about right for his career. For the subject that took his name, the 25 pounds bought the best-known example in every textbook.

Study graph theory properly

The Graph Theory Masterclass: weekly units, quizzes, a final exam, and a certificate.
About the program