ASP-Completeness of Hamiltonicity in Grid Graphs, with Applications to Loop Puzzles
Pith reviewed 2026-05-24 01:35 UTC · model grok-4.3
The pith
Hamiltonicity in maximum-degree-3 grid graphs is ASP-complete via a parsimonious reduction from every NP search problem.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Hamiltonicity in maximum-degree-3 grid graphs (directed or undirected) admits a parsimonious reduction from every NP search problem, supplying a polynomial-time bijection between solution sets. When the vertices form a complete rectangular array, the same property holds if edges are directed or if some edges may be omitted, but the complete undirected rectangular grid is already known to be easy.
What carries the argument
The T-metacell framework, which reduces ASP-completeness proofs for rectangular loop puzzles to the design of one gadget per degree-3 grid-graph vertex.
If this is right
- Given k Hamiltonian cycles, finding one more is NP-complete.
- Counting Hamiltonian cycles is #P-complete.
- Hamiltonicity remains ASP-complete for rectangular grids that are directed or that allow edge deletion.
- Thirty-eight named loop puzzles are ASP-complete, fourteen of which had no prior NP-hardness proof.
- Simple forms of Tree-Residue Vertex-Breaking, such as planar multigraphs with degree-6 breakable vertices, are ASP-complete.
Where Pith is reading between the lines
- The single-gadget reduction technique may apply directly to other cycle or path constraints on grids beyond the listed puzzles.
- Similar parsimonious reductions could separate the complexity of counting versus existence for additional families of planar constraint problems.
- The bijection property supplies a uniform way to transfer approximation or parameterized results from arbitrary NP search problems into grid Hamiltonicity.
Load-bearing premise
The gadget constructions produce a reduction that exactly matches the number of solutions without adding or omitting any.
What would settle it
An explicit NP search problem together with a grid-graph instance whose number of Hamiltonian cycles differs from the number of solutions of the original problem.
Figures
read the original abstract
We prove that Hamiltonicity in maximum-degree-3 grid graphs (directed or undirected) is ASP-complete, i.e., it has a parsimonious reduction from every NP search problem (including a polynomial-time bijection between solutions). As a consequence, given k Hamiltonian cycles, it is NP-complete to find another; and counting Hamiltonian cycles is #P-complete. If we require the grid graph's vertices to form a full $m \times n$ rectangle, then we show that Hamiltonicity remains ASP-complete if the edges are directed or if we allow removing some edges (whereas including all undirected edges is known to be easy). These results enable us to develop a stronger "T-metacell" framework for proving ASP-completeness of rectangular puzzles, which requires building just a single gadget representing a degree-3 grid-graph vertex. We apply this general theory to prove ASP-completeness of 38 pencil-and-paper puzzles where the goal is to draw a loop subject to given constraints: Slalom, Onsen-meguri, Mejilink, Detour, Tapa-Like Loop, Kouchoku, Icelom; Masyu, Yajilin, Nagareru, Castle Wall, Moon or Sun, Country Road, Geradeweg, Maxi Loop, Mid-loop, Balance Loop, Simple Loop, Haisu, Reflect Link, Linesweeper; Vertex/Touch Slitherlink, Dotchi-Loop, Ovotovata, Building Walk, Rail Pool, Disorderly Loop, Ant Mill, Koburin, Mukkonn Enn, Rassi Silai, (Crossing) Ichimaga, Tapa, Canal View, Aqre, and Paintarea. The last 14 of these puzzles were not even known to be NP-hard. Along the way, we prove ASP-completeness of some simple forms of Tree-Residue Vertex-Breaking (TRVB), including planar multigraphs with degree-6 breakable vertices, or with degree-4 breakable and degree-1 unbreakable vertices.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proves that Hamiltonicity on maximum-degree-3 grid graphs (directed or undirected) is ASP-complete via parsimonious reductions from arbitrary NP search problems. It further shows ASP-completeness for rectangular grids when edges may be directed or selectively removed. A T-metacell framework is introduced that reduces the task of proving ASP-completeness for rectangular loop puzzles to the construction of a single gadget for a degree-3 vertex. This framework is applied to establish ASP-completeness (including for 14 puzzles not previously known to be NP-hard) for 38 specific loop puzzles. Along the way, ASP-completeness is shown for several restricted forms of planar Tree-Residue Vertex-Breaking.
Significance. If the claimed parsimonious bijections hold, the results supply a reusable, gadget-based toolkit that lifts many existing NP-hardness proofs for grid and loop problems to the stronger ASP setting (preserving solution counts exactly). The explicit reduction from planar TRVB and the case-by-case verification of entry/exit configurations for the T-metacell provide concrete, checkable evidence rather than black-box arguments. The breadth of the 38 applications demonstrates immediate utility for puzzle complexity.
minor comments (3)
- §3.2, Figure 7: the caption for the directed T-metacell gadget does not explicitly list the four admissible entry/exit pairs that survive the global cycle condition; adding this enumeration would make the parsimony argument easier to verify at a glance.
- §4.1, Table 1: the row for 'Rectangular directed grid' lists the result but does not cite the specific lemma or theorem number that contains the reduction; cross-referencing would improve navigability.
- §5, the list of 38 puzzles: several puzzle names (e.g., 'Ovotovata', 'Rassi Silai') lack a one-sentence rule summary or reference to their standard source; this would help readers unfamiliar with the puzzle set.
Simulated Author's Rebuttal
We thank the referee for their positive review and recommendation to accept the manuscript. The referee's summary accurately captures our contributions on ASP-completeness for Hamiltonicity in max-degree-3 grid graphs and the T-metacell framework for loop puzzles.
Circularity Check
No significant circularity identified
full rationale
The derivation proceeds via explicit parsimonious reductions from known ASP-complete problems (planar TRVB) to Hamiltonicity on max-degree-3 grid graphs, supported by gadget diagrams, entry/exit case analysis, and the T-metacell construction. These steps are independent of the target result and do not reduce by construction to fitted parameters, self-definitions, or unverified self-citations. The framework and puzzle applications follow directly from the established reduction chain without circular renaming or ansatz smuggling. The paper is self-contained against external benchmarks.
Axiom & Free-Parameter Ledger
axioms (1)
- standard math Standard definitions of NP search problems, ASP-completeness, and parsimonious reductions from complexity theory.
Reference graph
Works this paper leans on
-
[1]
Demaine, Joshua Lockhart, and Jayson Lynch
[DLL18] Erik D. Demaine, Joshua Lockhart, and Jayson Lynch. The computational complexity of Portal and other 3D video games. InProceedings of the 9th International Conference on Fun with Algorithms (FUN 2018), pages 19:1–19:22, La Maddalena, Italy, June
work page 2018
-
[2]
Hamiltonicity is Hard in Thin or Polygonal Grid Graphs, but Easy in Thin Polygonal Grid Graphs
[DR17] Erik D. Demaine and Mikhail Rudoy. Hamiltonicity is hard in thin or polygonal grid graphs, but easy in thin polygonal grid graphs. arXiv:1706.10046,
work page internal anchor Pith review Pith/arXiv arXiv
-
[3]
[DR18] Erik D. Demaine and Mikhail Rudoy. Tree-Residue Vertex-Breaking: a new tool for proving hardness. InProceedings of the 20th Scandinavian Symposium and Workshops on Algorithm Theory (SW AT 2018), pages 32:1–32:14, Malm¨o, Sweden, June
work page 2018
-
[4]
Tree-Residue Vertex-Breaking: a new tool for proving hardness
Full paper at arXiv:1706.07900. [For10] Michal Foriˇsek. Computational complexity of two-dimensional platform games. InProceedings of the 5th International Conference on Fun with Algorithms, pages 214–227, Ischia, Italy, June
work page internal anchor Pith review Pith/arXiv arXiv
-
[5]
[HL18] Kaiying Hou and Jayson Lynch. The computational complexity of finding Hamiltonian cycles in grid graphs of semiregular tessellations. In Stephane Durocher and Shahin Kamali, editors, Proceedings of the 30th Canadian Conference on Computational Geometry (CCCG 2018), pages 114–128, Winnipeg, Canada, August
work page 2018
-
[7]
https://arXiv.org/abs/2004.12849. 33 [Tan22] Hadyn Tang. A framework for loop and path puzzle satisfiability NP-hardness results. arXiv:2202.02046,
- [8]
-
[9]
Also IPSJ SIG Notes 2002-AL-87-2,
work page 2002
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.