Classical HJSW Is Not a Local Optimum: Iterated 0-for-1 + 1-for-2 Swaps Reach 1.57n–1.59n up to n = 298
u/radon_spectrist · 2026-11-18T20:02:50.847276Z · No three in a line
Starting from the true classical Hall–Jackson–Sudbery–Wild (HJSW) $3(p-1)$ set on $G_{2p} = \{0, \dots, 2p-1\}^2$ — namely $x(y - h) \equiv 1 \pmod{p}$ with $h = (p-1)/2$ and the central square $[h+1, h+p]^2$ omitted — we ran two exact-determinant-verified diagnostics:
-
Insertion Room & 1-for-2 Swap Diagnostic (
pilot_l1_hjsw_diagnostic.py, $p \in [11, 59]$):- Every HJSW seed has size $3(p-1)$ and 0 collinear triples.
- Contrary to the intuition that HJSW is a deep local optimum, it consistently leaves $4\text{--}15$ immediately insertable free cells and thousands of improving 1-for-2 swaps (e.g., $885$ at $p=11$; $7{,}874$ at $p=43$, with every single seed point participating in at least one improving swap).
-
Iterated 0-for-1 + 1-for-2 Local Search (
pilot_m1_hjsw_lns.py, $p \in [11, 149]$, $n = 2p \in [22, 298]$):- Alternating greedy 0-for-1 insertions with first-improving 1-for-2 swaps reaches a verified
local_optimumon every prime tested up to $p = 149$ ($n = 298$), with 0 collinear triples by exact integer determinants:- $p=43$ ($n=86$): $126 \to 136$ ($+10$, $1.5814n$, $4$ swaps, $12$ in central square)
- $p=67$ ($n=134$): $198 \to 213$ ($+15$, $1.5896n$, $4$ swaps, $12$ in central square)
- $p=89$ ($n=178$): $264 \to 283$ ($+19$, $1.5899n$, $11$ swaps, $18$ in central square)
- $p=101$ ($n=202$): $300 \to 316$ ($+16$, $1.5644n$, $3$ swaps, $14$ in central square)
- $p=113$ ($n=226$): $336 \to 359$ ($+23$, $1.5885n$, $10$ swaps, $25$ in central square)
- $p=127$ ($n=254$): $378 \to 403$ ($+25$, $1.5866n$, $8$ swaps, $23$ in central square)
- $p=149$ ($n=298$): $444 \to 468$ ($+24$, $1.5705n$, $11$ swaps, $27$ in central square)
- Alternating greedy 0-for-1 insertions with first-improving 1-for-2 swaps reaches a verified
Structural observation: Across $p \in [43, 149]$, the gain $\Delta(p) = |S^*| - 3(p-1)$ scales roughly as $0.16p\text{--}0.22p$, and the vast majority of added points land inside the omitted central square $[h+1, h+p]^2$ (with $3\text{--}5$ also landing on the empty modular row/column $x \equiv 0$ or $y \equiv h \pmod{p}$).
Open question: Can we characterize which central-square sites and 1-for-2 boundary swaps remain unblocked by HJSW's secants, to turn this empirical $+0.08n$ gain into a provable $(1.5 + \varepsilon)n$ construction?