contents
§29

Hamiltonian paths on Cayley graphs

A Hamiltonian path in a graph visits each vertex exactly once; a Hamiltonian cycle closes back to the start. Plugging this into Cayley graphs (§14): a Hamiltonian path is an algorithm that visits every group element exactly once. Can the cube's states be traversed by one such alg? An open problem hanging there for over half a century.

29.1 The two conjectures (Cayley + Lovász)

The two protagonists are Cayley (1878) and László Lovász (1970). Cayley's original paper introducing his graphs implicitly asked whether they always carry a Hamiltonian cycle. A century later Lovász formulated a weaker version with "vertex-transitive" replacing "Cayley graph":

Conjecture 29.1 (Cayley, 1878 implicit)
Every connected finite Cayley graph admits a Hamiltonian cycle.
Conjecture 29.2 (Lovász 1970)
Every connected finite vertex-transitive graph admits a Hamiltonian path. (Note: path, not cycle.)

Both conjectures remain open, among the oldest unresolved problems in combinatorics. As of 2026, Lovász has been verified by computer for all vertex-transitive graphs of order ≤ 100 (Royle–Spiga); the Cayley cycle conjecture is settled constructively for many infinite families (Abelian, dihedral, generalised quaternion, nilpotent of class 2, …), but no general implication "Cayley ⇒ Hamiltonian cycle" has been proven.

Why do people believe the conjectures?
Three intuitions: (i) vertex-transitive graphs "look the same everywhere", so any local obstacle would propagate via symmetry and is hard to embed; (ii) the four known vertex-transitive non-Hamiltonian graphs (Petersen, Coxeter, and two Cayley-graph relatives of them) are not Cayley; (iii) extensive computer searches have never found a Cayley counterexample — though this only says there are no small ones.

29.2 Petersen graph — vertex-transitive but not Cayley

The classical witness separating the two conjectures is the Petersen graph : 10 vertices, 3-regular, girth (shortest cycle length) 5, diameter 2, vertex-transitive. It is not a Cayley graph of any group — the only 10-element groups are and , and neither yields Petersen as a Cayley graph.

Theorem 29.3 — Petersen (1898)
contains a Hamiltonian path (e.g. 0-1-2-3-4-9-7-5-8-6) but no Hamiltonian cycle. So Lovász (path version) holds on ; the Cayley (cycle) conjecture is vacuous on since is not a Cayley graph.
Aut(Petersen) = S₅

Identify the 10 vertices of with the 10 2-subsets of ; two vertices are adjacent iff the subsets are disjoint. acting by permutations of induces graph automorphisms, giving . A short check shows this is exact, so .

This is the source of vertex-transitivity: is 2-transitive on 2-subsets, hence 1-transitive, hence vertex-transitive. But if then must act regularly on the 10 vertices (i.e. with no fixed point). Enumerating the 3-regular Cayley graphs of and , none equals Petersen.

Petersen graph · interactive
toggle Ham path, number / 2-subset labels, and four S₅ automorphisms
0123456789
Aut(P) ≅ S₅
10 vertices = the 10 unordered 2-subsets of . Two vertices are adjacent iff the subsets are disjoint. The automorphism group acts by permuting . Gold edges show one Hamilton path (0-1-2-3-4-9-7-5-8-6); but Petersen has no Hamilton cycle (Petersen 1898).

29.3 Abelian case — Gray codes

For Abelian groups the Cayley cycle conjecture is true — the cleanest case in the entire conjecture. The proof is constructive, producing an explicit alg. The most elegant example, on , is Frank Gray's reflected binary code (Bell Labs, invented 1947, patented 1953): one bit flips per step.

This yields distinct n-bit strings forming a Hamiltonian cycle of , each edge corresponding to a generator . For a general finite Abelian group , use a zig-zag (snake) Gray code: walk forward, the second row of backward, the third forward, etc. Total length gives a Hamilton path; it closes to a cycle when each and at least one is even.

Gray code walking through 𝔽₂ⁿ
1 / 16
0
0
0
0
One bit flips per step — this is a Hamiltonian path through the 16-element group . Every Abelian Cayley graph admits one (Theorem).

The Gray code is not unique. The whole family of sequences where "consecutive strings differ in one bit" is large. Balanced Gray codes require each bit-position to flip nearly equally often (ideally times) — used in ADCs to spread spike errors; monotone Gray codes walk by ascending popcount — used in parallel algorithms; snake-in-the-box codes are induced paths of length ≤ (no chord between non-consecutive vertices) — used in error correction. All are Hamiltonian paths or cycles in , distinguished only by which extra structure is imposed.

Gray code family · n = 3..5
reflected binary vs balanced vs anti-Gray; Δ = bits flipped between consecutive entries
nfamily
00000
10001Δ = 1
20011Δ = 1
30010Δ = 1
40110Δ = 1
50111Δ = 1
60101Δ = 1
70100Δ = 1
81100Δ = 1
91101Δ = 1
101111Δ = 1
111110Δ = 1
121010Δ = 1
131011Δ = 1
141001Δ = 1
151000Δ = 1
average bits flipped per step: 1.00 · ✓ valid Gray sequence (exactly 1 bit per step)

29.4 The hypercube Q_n — geometric source of Gray codes

The Cayley graph of with the standard basis is the n-dimensional hypercube : vertices = bit-strings, adjacent iff one bit differs. The reflected Gray code is a Hamiltonian cycle of ; conversely every Hamilton cycle of corresponds to some Gray-style code.

Theorem 29.4 — Counting Ham cycles in Q_n
contains Hamilton cycles. The count grows fast: , , , , (OEIS A006069). No closed form is known; heuristically .
Q_n · Hamilton cycle animation (n = 3, 4)
reflected Gray code; gold edges = traversed; binary labels show the current vertex
1 / 8
000001010011100101110111
One bit flips per step, traversing an edge of . Hamilton cycle through all = 8 vertices. Current vertex: 000

29.5 Knight's tour — the 18th-century prototype

The earliest famous instance of the Hamiltonian path problem — predating Hamilton's 1857 octahedron puzzle by centuries — is the knight's tour: can a knight visit every square of an 8 × 8 board exactly once? The answer "yes" goes back to 9th-century Arabic manuscripts; Euler (1759) gave the first systematic algorithm and Vandermonde (1771) cast it as a combinatorial problem. The knight graph is not a Cayley graph (no transitive group action), but it spawned the entire research direction of Hamilton cycles on regular-ish graphs.

Warnsdorff's rule (1823)
At each step move to the neighbour with the fewest onward legal options. A one-line greedy rule — but it almost always completes a full Hamilton tour and was the first practical Hamilton-path solver in history. Empirically: random starts on 8 × 8 complete ≥ 99% of the time; on n × n for large n, it succeeds with overwhelming probability.
Knight's tour · 8 × 8
starting from a1, a 64-step tour generated by Warnsdorff's rule
1
step 1 / 64
square a1
Warnsdorff's 1823 rule: at each step pick the neighbour with the fewest onward options. It almost always completes a full Hamilton tour. Shown here: 64 squares starting from a1, each segment a legal (1, 2) knight move.

The knight's tour was fully classified in the 20th century (Schwenk 1991): a rectangular m × n board (m ≤ n) admits a closed Hamilton tour iff it does NOT lie in the three exceptional families: mn odd, m ∈ {1, 2, 4}, or m, n ∈ {(3, 4), (3, 6), (3, 8)}. 8 × 8 escapes, so closed tours exist; in fact many — Löbbing–Wegener (1995) computed by BDD that there are exactly 26 534 728 821 064 undirected closed knight's tours (8× more if directed = 2.12 × 10¹⁴).

29.6 Rapaport-Strasser · dihedral and generalised quaternion

In 1959 Elvira Rapaport-Strasser gave the first constructive proof of the Cayley cycle conjecture for a non-Abelian family — the dihedral groups ( elements, generated by a rotation and reflection ) — showing every connected Cayley graph admits a Hamilton cycle. In 1963 she extended this to generalised quaternion groups and several larger finite group families.

Theorem 29.5 — Rapaport-Strasser 1959
Let with generators (or any connected set). Then contains an explicit Hamilton cycle of the formThe first n steps walk by r; an s-jump moves into the reflection coset; another n backward r-steps walk back; one final s closes the loop. Total steps. This is the earliest example of coset chaining: two cosets of are Abelian Hamilton cycles in their own right, joined via the connector s.

After Rapaport-Strasser, results piled up across group families: Witte (1986) for p-groups; Witte-Gallian (1984) for semidirect products ; Chen-Quimpo (1980s) for dihedral × Abelian. A unifying motto: "if every quotient in a normal series has a Hamilton cycle then so does " — the formalisation of §29.9's coset-chaining recipe.

29.7 Marušič 1985 and the modern frontier

From the 1980s onwards Dragan Marušič (the Slovenian school) pushed Lovász's weaker conjecture (vertex-transitive → Hamilton path) upward order by order. His seminal 1983 paper introduced the systematic toolkit — imprimitive block systems, orbital partitions, semiregular automorphisms — that still dominates the field today.

Theorem 29.6 — Marušič (1985)
Every vertex-transitive graph of order pk for p prime and k bounded contains a Hamilton path. At the time this leap took Lovász from "checked on small examples" to "proven for infinitely many cases".

The 2009 Kutnar–Marušič survey arranged all known results in a table ordered by group order. By publication time, every had been verified; 2012-2018 work (Witte, Verret, Spiga, ...) pushed the line to roughly . Group families now classified as "done":

A uniform proof remains elusive. Babai (1995), in his survey calling the Cayley conjecture "one of the most important open problems in combinatorics", argued that if Lovász is true there should be a structural group-theoretic reason, not just family-by-family case work. Ten years on, no such reason has emerged. Brute-force computer searches, conversely, give strong evidence: no counterexample has been found.

29.8 Status on cube subgroups

Cube-related groups occupy an interesting position on this problem — some are solved (with explicit constructions), others remain open. Jaap Scherphuis maintains a list on his classic "puzzle pages":

puzzle / group|G|Ham cycle?source / note
Rubik's Clock12¹⁴ ≈ 1.28×10¹⁵Abelian → base-12 Gray code
Floppy Cube (1×3×3)192explicit (R²LR²L'R²LR²L')⁵
Two-face 6-piece (§30)120 ≅ S₅known, with connector (RU)⁴LU
Lights Out (5×5)2²⁵Abelian → binary Gray code
Pocket Cube (2×2×2)3 674 160?open (conjectured)
Rubik's Cube (3×3×3)4.3×10¹⁹?open (conjectured)
Pyraminx75 582 720?open
Megaminx≈ 10⁶⁸?open (size prohibitive)

A scale check: the 3×3×3 Cayley graph has vertices ≈ the number of grains of sand on Earth's beaches. Even if "BFS for a Ham cycle" were polynomial, the traversal itself would exceed any conceivable compute cluster. Existing cube solvers (Korf IDA*, Kociemba two-phase, Rokicki BFS) are not Ham-cycle constructions — they are geodesic searches or diameter proofs, fundamentally different problems. A geodesic spans ≤ 20 steps; a Hamilton cycle spans .

29.9 Coset chaining — the standard construction tool

Every solved non-Abelian case (dihedral, quaternion, p-groups, ...) uses the same core technique: coset chaining. In one line: find a subgroup with a known Ham cycle, then splice the cosets of together like a zipper.

Coset chaining (Witte-Gallian 1984, formal)
Let , generators containing a generating set of and one connector . If (a) contains a Hamilton path (with ), (b) the quotient graph contains a Hamilton cycle (), (c) the connector is direction-compatible with on each coset, then contains a Hamilton cycle.

Proof sketch: walk inside along , hop to via , walk backwards , hop to , zig-zag until all cosets are covered. Condition (c) ensures the zig-zag endpoints connect without dead-ending. Total length , returning to the start.

Coset chaining · Z₈ example
subgroup H = 2Z₈ = {0,2,4,6} traversed by +2; connector +3 splices to odd coset {1,3,5,7}; 8 steps form a Ham cycle
01234567
step 0 / 8
now at 0
Two phases: traverse the even coset via +2 (4 vertices), splice to the odd coset using the connector +3, traverse via +2, then +3 closes to 0. This is coset chaining at its simplest — splicing subgroup Ham cycles into one for the parent group.

For the 3×3×3 cube there is a theoretical pathway: take (corner / edge orientation subgroup, Abelian) and traverse it via a Gray code, then use some "orientation-fixing" connector to hop into the next coset. All the difficulty lies in (c) — finding a connector compatible with the Abelian Gray code on every coset. So far no one has built such a connector for the cube.

29.10 Pak-Radoičić · a near-theorem

Igor Pak and Rados Radoičić (2009) proved a weak form of Lovász: every finite group has a generating set with such that contains a Hamilton cycle. In other words, "if we get to choose the generators, a Hamilton cycle always exists".

Theorem 29.7 — Pak-Radoičić (2009)
For every finite group there is a generating set with such that contains a Hamilton cycle. Moreover, the cycle can be constructed in polynomial time.

This almost settles the Cayley cycle conjecture — the only gap is "the case when we are not allowed to choose the generators". In cube language: if we're free to pick a non-standard generating set (not ), we can construct a Hamilton cycle of length 4.3 × 10¹⁹. With the standard WCA 6-face generators, the question is still open.

The Pak-Radoičić proof uses the Classification of Finite Simple Groups (CFSG) as a black box, so it is technically conditional on the 10 000-page CFSG monolith from the 1980s. This is one of the rare combinatorial uses of CFSG.

29.11 Computational complexity · NP-complete in general, open for vertex-transitive

Phrasing the Cayley conjecture as a decision problem: given a finite graph , is there a Hamilton cycle? On general graphs this is one of Karp's 21 NP-complete problems (1972) — computationally intractable in the worst case. With the "vertex-transitive" symmetry constraint, even the complexity class is unknown:

graph classHAM-CYCLEHAM-PATH
general finite graphNP-complete (Karp 1972)NP-complete
planar 3-regularNP-complete (Garey-Johnson-Tarjan 1976)NP-complete
bipartiteNP-completeNP-complete
vertex-transitiveopen (Lovász ⇒ trivial)open (Lovász ⇒ trivial)
Cayley graphopen (conjecture ⇒ trivial)open (conjecture ⇒ trivial)
Abelian CayleyP (Gray code)P

The complexity of HAM-CYCLE on vertex-transitive / Cayley graphs is equivalent to the truth of Lovász / Cayley conjectures: if true, the problem trivially returns "yes", complexity O(1); if false, "no" instances exist but the upper bound is unknown. A rare meeting of mathematics and computer science — a structural conjecture directly determining the complexity class of a decision problem.

29.12 Summary · from 1759 to 2026

A timeline of §29:

"Can the cube's states be walked by one alg?" When Cayley introduced his graph in 1878, the question hadn't even been formulated. A century and a half later we can say it almost certainly has an answer "yes" (Pak-Radoičić, with a non-standard generating set), but for the WCA-standard 6-face / 18-move set — we don't know. Sitting along §14 (Cayley graphs), §28 (chip-firing on game graphs), §29 (this section), this is the central open problem that "geometrising group theory" has left for the 21st century.

cuberoot.me · Rubik's Cube as a Group · 2026