Building symmetric coils with implicit-quotient beam search

Before the improvements described here, the following were the best known lengths for the snake-in-the-box, coil-in-the-box, and symmetric coil-in-the-box problems, in dimensions 9 ≤ n ≤ 13: (sourced from www.minortriad.com)

Baseline lengths, as of July 1, 2026
nsnakecoilsymmetric coil
9190188186
10376370362
11737728674
12146514421222
13289828322354

In dimensions n ≤ 10, the longest known symmetric coils are approximately the same length as the longest known snakes and coils. After the 10th dimension, the lengths of the best-known constructions for these problems deviate significantly, as shown by the percentage of best-known symmetric coil versus best-known (general) coil:

Symmetric-to-generic coil length percentage
n(previous-best symmetric coil) / (best-known coil)
795.8% (46/48)
897.9% (94/96)
998.9% (186/188)
1097.8% (362/370)
1192.6% (674/728)
1284.7% (1222/1442)
1383.1% (2354/2832)

For n ≤ 6, proven optimal coils and symmetric coils have the same length. Experimentally, several of the best-known symmetric coils are exactly length 2 shorter than best-known general coils; this is the case in dimensions 7, 8, and 9.

Findings

Given the unexplained percentage decrease and structural potential of symmetric coils, I investigated approaches to build larger explicit constructions. Using an implicit-quotient beam search, I improved the best known symmetric-coil lengths in dimensions 11, 12, and 13.

New symmetric hypercube coils
nprevious-best lengthnew coil length% of general coil
1167471892.6% → 98.6%
121222142284.7% → 98.6%
132354276683.1% → 97.7%

Notably, the lengths of these symmetric coils are approximately 97-98% of the length of the best-known general coils in their dimensions, which aligns with previous empirical results for smaller n.

The vertices of the n-cube QnQ_n can be naturally labelled with the vectors of F2n\mathbb{F}_2^n. For the sake of simplicity, I will refer to vertices by their vector label. Two vertices x,y∈F2nx, y \in \mathbb{F}_2^n are adjacent if wH(x+y)=1w_H(x + y) = 1 where wHw_H denotes Hamming weight. We denote the neighbors of a vertex uu as N(u)={v:wH(u+v)=1}N(u) = \{v : w_H(u + v) = 1\}. A symmetric coil CS=(v0,v1,…,v2m−1,v0)C_S = (v_0, v_1, \ldots, v_{2m-1}, v_0) is an induced cycle over F2n\mathbb{F}_2^n such that ∀i∈{0,1,…,m−1},vi+m=vi+d\forall i \in \{0, 1, \ldots, m-1\}, v_{i+m} = v_i + d for some fixed d∈F2nd \in \mathbb{F}_2^n. If viv_i and vi+1v_{i+1} are consecutive vectors in CSC_S, then wH(vi+vi+1)=1w_H(v_i + v_{i+1}) = 1. If viv_i and vjv_j are non-consecutive vectors in CSC_S, then wH(vi+vj)≥2w_H(v_i + v_j) \geq 2.

The key symmetry is translation by dd: each vertex xx is naturally paired with x+dx + d. This gives an order-2 symmetry group G={id,x↦x+d}G = \{\mathrm{id}, x \mapsto x + d\} acting on the nn-cube. Rather than search the full cube, we search modulo this symmetry, so vertices are treated as orbit pairs, with the goal of finding a long half-path v0,v1,…,vm−1v_0, v_1, \ldots, v_{m-1} such that wH(vm−1+d)=1w_H(v_{m-1} + d) = 1. This quotient perspective is closely related to Wynn's work on permuted circuit codes.

Conceptually, we want to choose dd such that wH(d)w_H(d) is small in order to minimize interference between halves. In fact, the smallest valid weight is 3 to construct a symmetric coil with length longer than 4. The actual coordinates set to 1 are arbitrary, as any dd with equivalent weight is equivalent up to relabeling.

For the actual search algorithm targeting the nn-cube, we warm-start with the first kk transitions from the half-sequence of an existing (n−1)(n-1)-symmetric coil. Priming the search with lower-dimensional seeds is a strategy adapted from Ace's recent record constructions for snakes and coils. By convention, v0=0v_0 = \mathbb{0}. Then, we build a blocked bitmap of invalid vertices and set the head to the last vertex of the seeded path.

Along with each candidate uu, the algorithm also considers its pair for the second-half u+du + d. In particular, if a candidate uu is chosen to follow to the current head hh, then all of the following must be blocked: N(h),u,u+d,N(u+d)N(h), u, u + d, N(u + d). Closure is determined when the chosen candidate uu satisfies wH(u+d)=1w_H(u + d) = 1. Candidates are evaluated from N(h)N(h) using a beam search. Saved states for the beam are determined by a heuristic which attempts to minimize the number of new forbidden vertices (and thus maximally "reuse" the existing blocked vertices) with a bias to keep eventual traversal to dd possible.

Using this method, the symmetric coils presented under Findings were generated with relatively small RAM usage (< 4GB) with a cumulative computation time under 2 hours on an Intel i5-10600k. Beginning with a 362-length 10-d symmetric coil from Meyerson et al., we built our 11-d symmetric coil, which then seeded our 12-d symmetric coil, which then seeded our 13-d symmetric coil. Meyerson et al.'s 10-d symmetric coil used d=e3+e5+e9d = e_3 + e_5 + e_9 which we inherited for each of our results.

References


Last updated July 2, 2026