cs.DMJul 16, 2026

New Snake-in-the-Box Records via Snakepit Surgery and Learned Construction

Authors: Paul Orland, Lucas Fagan, Michele Tarquini, Davide Passaro, Maksymilian Manko, Elli Heyes, Angus Gruen, Giorgi Butbaia, +2 more

Abstract

The snake-in-the-box problem asks for a longest induced path in the hypercube graph QnQ_n. We find a length-191 snake in dimension n=9n=9, the lowest dimension where the maximum is unknown, improving the previous record of 190 that had stood for 14 years. We also establish new lower bounds in dimensions 10-13. To find these records, we introduce snakepits, collections of disjoint snakes, to expand the search space and open new routes between snakes. This motivates our new Snakepit-in-the-Box benchmark, which seeks maximal edge counts when allowing multiple components. Finally, we introduce Beam Anchor, a search-supervised learned constructor algorithm that finds 100 inequivalent length-190 snakes in dimension 9.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

Feb 6, 2026cs.AI

Improved Upper Bounds for Slicing the Hypercube

A collection of hyperplanes H\mathcal{H} slices all edges of the nn-dimensional hypercube QnQ_n with vertex set {−1,1}n\{-1,1\}^n if, for every edge ee in the hypercube, there exists a hyperplane in H\mathcal{H} intersecting ee in its interior. Let S(n)S(n) be the minimum number of hyperplanes needed to slice QnQ_n. We prove that S(n)≤⌈4n5⌉S(n) \leq \lceil \frac{4n}{5} \rceil, except when nn is an odd multiple of 55, in which case S(n)≤4n5+1S(n) \leq \frac{4n}{5} +1. This improves upon the previously known upper bound of S(n)≤⌈5n6⌉S(n) \leq \lceil\frac{5n}{6} \rceil due to Paterson reported in 1971. We also obtain new lower bounds on the maximum number of edges in QnQ_n that can be sliced using k<nk<n hyperplanes. We prove the improved upper bound on S(n)S(n) by constructing 88 hyperplanes slicing Q10Q_{10} aided by the recently introduced CPro1: an automatic tool that uses reasoning LLMs coupled with automated hyperparameter tuning to create search algorithms for the discovery of mathematical constructions.
Jul 23, 2026cs.IT

Improved lower bounds for the Shannon capacity of odd cycles

The Shannon capacity Θ(G)Θ(G) of a graph GG quantifies the maximum rate at which information can be transmitted with zero error over a noisy channel. It is lower bounded by α(Gd)1/dα(G^d)^{1/d} for any dd, where α(Gd)α(G^d) is the independence number of the dd-th strong product of GG. We construct independent sets of size 134753134753 in C710C_7^{10}, 2190921909 in C116C_{11}^{6}, 6253062530 in C136C_{13}^{6}, and 80769748076974 in C158C_{15}^{8}, improving the best known lower bounds for the Shannon capacity of these graphs to Θ(C7)≥1347531/10>3.258020Θ(C_7)\geq 134753^{1/10}>3.258020, Θ(C11)≥219091/6>5.289773Θ(C_{11})\geq 21909^{1/6}>5.289773, Θ(C13)≥625301/6>6.300109Θ(C_{13})\geq 62530^{1/6}>6.300109, and Θ(C15)≥80769741/8>7.301399Θ(C_{15})\geq 8076974^{1/8}>7.301399. We also improve the best known lower bounds on the independence numbers of several individual strong products of odd cycles that do not improve the Shannon capacity lower bound. The constructions were discovered through iterative interactions with a Large Language Model (LLM), illustrating the potential of LLMs for finding explicit combinatorial constructions.
Aug 8, 2026cs.AI

Neurosymbolic Discovery of Algebraic Graph Constructions

There are several methods for searching for graphs with prescribed properties, such as SAT solvers and specialized generators. These methods return the result as raw data: an adjacency matrix or a string encoding. The raw data certifies that the graph exists, but it does not reveal any structural properties of the graph. We ask whether one can automatically discover a short algebraic description if only this raw data is provided. We look for a description such as a Cayley graph Cay(Γ,S)\mathrm{Cay}(Γ, S) or a lexicographic product C5[K3]C_5[K_3]. We address this question with a neurosymbolic approach. We propose an agent that runs on a general-purpose large language model with no fine-tuning or per-target training. The model interleaves reasoning with calls to the computer algebra system SageMath: it analyzes the target graph, proposes and tests candidate constructions, and revises them until the output matches the target. The agent communicates with SageMath through a Model Context Protocol (MCP) server, which we release as a general-purpose bridge. Whether a construction matches the target is checked by a single exact isomorphism test, and therefore rests on the symbolic side and not on the model. We test the approach on a benchmark of 100 highly symmetric graphs, namely two-orbit graphs on up to 25 vertices; the benchmark was fixed in advance. Our agent could find verified algebraic constructions for all of them, without falling back to raw encodings. A strong template-enumeration baseline reaches only about 20%20\%, and a catalog lookup could not identify any of these graphs. However, construction quality declines when symmetry is removed. As a concrete application, we identify the smallest known counterexample to the Bernhart-Kainen dispersability conjecture, a 1616-vertex graph that enumeration found as raw data. For this graph, our agent found an explicit algebraic construction.