| $n$ | $\chi(\text{Gen}(n,n))$ BJMOW $12n$ |
$\chi(T_n)$ patched |
saving | $\chi(T_n)/n$ |
|---|---|---|---|---|
| 80 | 976 | 956 | 20 | 11.9500 |
| 120 | 1456 | 1416 | 40 | 11.8000 |
| 160 | 1936 | 1876 | 60 | 11.7250 |
| 200 | 2416 | 2336 | 80 | 11.6800 |
| 240 | 2896 | 2796 | 100 | 11.6500 |
| 280 | 3376 | 3256 | 120 | 11.6286 |
| 320 | 3856 | 3716 | 140 | 11.6125 |
| 360 | 4336 | 4176 | 160 | 11.6000 |
| 400 | 4816 | 4636 | 180 | 11.5900 |
| 440 | 5296 | 5096 | 200 | 11.5818 |
| 480 | 5776 | 5556 | 220 | 11.5750 |
| 520 | 6256 | 6016 | 240 | 11.5692 |
| 560 | 6736 | 6476 | 260 | 11.5643 |
| 600 | 7216 | 6936 | 280 | 11.5600 |
| 640 | 7696 | 7396 | 300 | 11.5563 |
| 680 | 8176 | 7856 | 320 | 11.5529 |
| 720 | 8656 | 8316 | 340 | 11.5500 |
| 760 | 9136 | 8776 | 360 | 11.5474 |
| 800 | 9616 | 9236 | 380 | 11.5450 |
| 840 | 10096 | 9696 | 400 | 11.5429 |
| 880 | 10576 | 10156 | 420 | 11.5409 |
| 920 | 11056 | 10616 | 440 | 11.5391 |
| 960 | 11536 | 11076 | 460 | 11.5375 |
| 1000 | 12016 | 11536 | 480 | 11.5360 |
This page visualises the closed knight's tour produced by
BJMOW Algorithm 1
(Besa et al., 2022)
in its $12n$ optimised configuration (Section 4.2.2
of the paper, with each $4\times8$ heel using 28 crossings instead
of the $32$ of the default Sequence1), optionally
patched: groups of five adjacent heels are replaced by a single
$4\times40$ SequenceP_40 template found by CP-SAT
search.
Toggle the checkbox to switch between the two tours.
Coloured rectangles overlaid on the board mark the heel
templates used in the current view:
green for each $4\times8$ BJMOW
optimised heel, and
red for each $4\times40$
SequenceP_40 in the patched tour.
Each red rectangle replaces exactly five adjacent green
rectangles (Fig. below).
The edges outside the marked rectangles — the
bulk, side bands, and corner templates — are bit-for-bit
identical between the two tours.
The $4\times40$ SequenceP_40 template was found by
constraint-programming search subject to one rule:
the cross-boundary edges, boundary endpoints, and internal-path
pairing of the $4\times40$ region must exactly match
those of five horizontally adjacent BJMOW heels.
Because of that, the substitution is interface-preserving, and
BJMOW's Hamilton-property proof (their Theorem 2) applies
verbatim to the patched tour. The same SequenceP_40
template works for either the default ($32$-crossing) Sequence1
or the optimised ($28$-crossing) heel — their cross-template
interface and path-pairing are identical, so $\chi(T_n)/n$
converges to $11.5$ in both cases.
The knight's tour problem asks for a cycle through every cell of a rectangular board using only knight moves. BJMOW (Theoretical Computer Science 902, 2022; arXiv:1904.02824) gave the first $O(1)$-constant upper bound on the number of crossings: $\chi(T_n) \le 12n + O(1)$ asymptotically.
This fork uses the optimised BJMOW heel ($28$ crossings per
$4\times8$ heel, matching their claimed $12n$ bound) as the
baseline, and adds a single-element SequenceP_40 patch
in board.js: a $4 \times 40$ pairing-preserving template
found by CP-SAT search. It replaces five adjacent $4 \times 8$
heels and preserves the cross-boundary edge interface;
BJMOW's Hamilton-property proof
(their Theorem 2) therefore applies verbatim to the patched tour.
The crossing constant drops asymptotically from $12$ to $11.5$
(or from $13$ to $11.5$ relative to the default Sequence1 heel).
Original demo by Juan Jose Besa Vidal, Timothy Johnson, Nil Mamano, and Martha Osegueda (upstream repo). Source for this fork: github.com/daizisheng/MinCrossingsKnightsTour.