Tatamibari is NP-complete
Tatamibari is NP-complete
复制标题
Tatamibari 是 NP 完全的
DOI:
10.4230/lipics.fun.2021.1
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
J. Lynch
中科院分区:
文献类型:
--
作者:
Aviv Adler;Jeffrey Bosboom;E. Demaine;M. Demaine;Quanquan C. Liu;J. Lynch
In the Nikoli pencil-and-paper game Tatamibari, a puzzle consists of an $m \times n$ grid of cells, where each cell possibly contains a clue among +, -, |. The goal is to partition the grid into disjoint rectangles, where every rectangle contains exactly one clue, rectangles containing + are square, rectangles containing - are strictly longer horizontally than vertically, rectangles containing | are strictly longer vertically than horizontally, and no four rectangles share a corner. We prove this puzzle NP-complete, establishing a Nikoli gap of 16 years. Along the way, we introduce a gadget framework for proving hardness of similar puzzles involving area coverage, and show that it applies to an existing NP-hardness proof for Spiral Galaxies. We also present a mathematical puzzle font for Tatamibari.