NP-Completeness Proofs of All or Nothing and Water Walk Using the T-Metacell Framework
Pakapim Eua-anant, Papangkorn Apinyanon, Thunyatorn Jirachaisri, Nantapong Ruangsuksriwong, Suthee Ruangwises
TL;DR
This paper proves that All or Nothing and Water Walk are NP-complete using the T-metacell framework, reducing from Hamiltonian cycle problems on a max-degree-3 spanning subgraph of a rectangular grid graph, denoting the base graph as $G$ with complement $H$. The reductions encode grid-graph vertices with T-metacell gadgets and rely on representing the base graph via $G$ and $H$, without requiring unique local paths. Because the gadgets do not enforce a unique path between exit pairs, the results establish NP-completeness but not ASP-completeness, leaving ASP as a target for future work. Overall, the work expands the catalog of pencil puzzles known to be NP-hard and outlines a concrete path toward achieving ASP-completeness through stronger locally-unique gadgets.
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.
