NP-Completeness Proofs of All or Nothing and Water Walk Using the T-Metacell Framework

📅 2025-10-24
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This paper establishes the computational complexity of the pencil puzzles *All or Nothing* and *Water Walk*, proving both to be NP-complete. Leveraging the known NP-completeness of the Hamiltonian cycle problem on rectangular grid graphs with maximum degree three, we construct a polynomial-time many-one reduction. Crucially, we introduce the *T-metacell* abstraction—a framework for jointly modeling local constraints and global connectivity—and apply it for the first time to these puzzles. The reduction preserves solution existence bijectively, thereby confirming NP-completeness. Our work extends the applicability of the T-metacell framework beyond previously studied puzzles and systematically bridges pencil puzzle complexity with constrained graph-theoretic problems. Moreover, it provides a reusable methodological paradigm for analyzing the computational hardness of logic puzzles governed by local rules and global structural requirements. (132 words)

Technology Category

Application Category

📝 Abstract
All or Nothing and Water Walk are pencil puzzles that involve constructing a continuous loop on a rectangular grid under specific constraints. In this paper, we analyze their computational complexity using the T-metacell framework developed by Tang and MIT Hardness Group. We establish that both puzzles are NP-complete by providing reductions from the problem of finding a Hamiltonian cycle in a maximum-degree-3 spanning subgraph of a rectangular grid graph.
Problem

Research questions and friction points this paper is trying to address.

Proving NP-completeness of All or Nothing puzzle
Establishing computational complexity of Water Walk puzzle
Using T-metacell framework for complexity analysis
Innovation

Methods, ideas, or system contributions that make the work stand out.

Used T-metacell framework for complexity analysis
Proved NP-completeness via Hamiltonian cycle reduction
Applied method to All or Nothing puzzles
🔎 Similar Papers
No similar papers found.
P
Pakapim Eua-anant
Department of Computer Engineering, Chulalongkorn University, Bangkok, Thailand
P
Papangkorn Apinyanon
Department of Computer Engineering, Chulalongkorn University, Bangkok, Thailand
T
Thunyatorn Jirachaisri
Department of Computer Engineering, Chulalongkorn University, Bangkok, Thailand
N
Nantapong Ruangsuksriwong
Department of Computer Engineering, Chulalongkorn University, Bangkok, Thailand
Suthee Ruangwises
Suthee Ruangwises
Chulalongkorn University
card-based cryptographypuzzlescomputational complexitymatching under preferences