A Census of New Snake-in-the-Box Records

Paul Orland, Lucas Fagan, Michele Tarquini, Davide Passaro, Maksymilian Manko, Elli Heyes, Angus Gruen, Giorgi Butbaia, Justin Tan, Sergei GukovarXiv 2026

TL;DR

This paper breaks long-standing records for the "snake-in-the-box" problem by discovering the longest known chordless paths (snakes) and cycles (coils) in hypercubes of dimensions 9 through 13. Leveraging massive parallel computing power across GPUs and Cloud TPUs, the authors found hundreds of new optimal configurations and released an open-source, computer-verifiable dataset of these new geometric lower bounds.

What Problem Does This Paper Address?

The snake-in-the-box problem, first introduced by W. H. Kautz in 1958, is a classic puzzle in graph theory and combinatorics. It asks: What is the longest possible chordless path (a "snake") or chordless cycle (a "coil") that can be woven through an $n$-dimensional hypercube ($Q_n$)?

In a hypercube graph, vertices are binary strings, and edges connect strings that differ by exactly one bit. A path is "chordless" if no two non-consecutive vertices in the sequence share an edge—meaning there are no "shortcuts" along the snake's body.

Finding these paths is crucial for designing error-detecting codes, electronic combination locks, and efficient routing protocols. However, because the number of vertices in a hypercube grows exponentially ($2^n$), the search space quickly becomes impossibly large. Exact mathematical solutions are only known for dimensions $n \le 8$. For $n \ge 9$, researchers must hunt for the best possible lower bounds using computational heuristics.

Figure 1: Optimal snakes in Qn for n = 1, 2, 3, 4.

Methods

Rather than introducing a brand-new mathematical theory, this paper achieves its breakthroughs through a massive, highly scaled computational search.

The authors built upon previous heuristic search strategies—such as genetic algorithms, evolutionary searches, and Monte-Carlo tree searches. The key differentiator was the sheer scale of modern hardware acceleration utilized. The authors deployed:

  • Cloud TPUs via Google’s TPU Research Cloud (TRC)
  • NVIDIA GPUs from the Academic Grant Program
  • AMD High-Performance Computing Clusters

To navigate the hypercube efficiently, the paths were represented as transition sequences—ordered lists of the 0-indexed coordinate bits flipped at each step along the path. This compact representation allowed the algorithms to rapidly evaluate and verify billions of potential paths.

Datasets

Because this is a pure combinatorial optimization problem, no training datasets were used. Instead, the primary output of this research is a new, open-source benchmark dataset.

The authors provided a public GitHub repository containing the exact transition sequences for all their record-breaking snakes and coils across dimensions $9 \le n \le 13$. This allows any researcher to instantly verify the validity and length of the paths using a simple computer script.

Key Insights and Ideas

  • Symmetry Redundancy: To find truly unique paths, the authors filtered out equivalent snakes using the structural symmetries of the hypercube (the $n!$ coordinate permutations, $2^n$ translations via XORing, and path reversals). For dimension 9, they discovered exactly 131 distinct symmetry classes at the new record length.
  • Compute-Driven Discovery: The results demonstrate that combinatorial problems which have resisted improvement for over a decade can yield to brute-force heuristic scaling when paired with modern AI hardware (TPUs/GPUs).
  • A Launchpad for the Community: The authors noted that publishing their initial findings immediately sparked further breakthroughs. Other researchers quickly applied "local detour insertions" to their newly discovered paths, pushing the records even higher.

Key Results

The paper successfully established new lower bounds for both snakes ($a(n)$) and coils ($b(n)$):

  • Snakes ($a(n)$): New record lengths were set for all dimensions from 9 to 13. For instance, the lower bound for $Q_9$ was raised to 191, and $Q_{13}$ saw a massive jump of +22 over the previous record, reaching a length of 2924.
  • Coils and Symmetric Coils: The authors found longer cycles, including a coil of length 1466 in dimension 11, beating the previous best by 24 steps.
Table 1: New lower bounds on a(n). The final column counts the inequivalent snakes we find at the record length, up to the symmetries of Qn.

Limitations and Future Work

The primary limitation is that these results are entirely empirical. While the paper proves that snakes of these lengths exist, it cannot prove that they are the absolute maximum lengths possible (the true mathematical optimum) for dimensions $n \ge 9$.

Additionally, while the authors conjecture that their census of 131 distinct snake symmetry classes for $Q_9$ is complete, they make no completeness claims for dimensions 10 and above. The authors view their record-breaking paths not as a final destination, but as a foundational dataset for future local optimization algorithms to improve upon.

Summary updated

BibTeX
@misc{orland2026census,
  author = {Paul Orland and Lucas Fagan and Michele Tarquini and Davide Passaro and Maksymilian Manko and Elli Heyes and Angus Gruen and Giorgi Butbaia and Justin Tan and Sergei Gukov},
  title = {{A Census of New Snake-in-the-Box Records}},
  year = {2026},
  eprint = {2607.15270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.15270},
}

Loading related content...

Figure