Even $1 \times n$ Edge-Matching and Jigsaw Puzzles are Really Hard
Abstract
We prove the computational intractability of rotating and placing square tiles into a array such that adjacent tiles are compatible--either equal edge colors, as in edge-matching puzzles, or matching tab/pocket shapes, as in jigsaw puzzles. Beyond basic NP-hardness, we prove that it is NP-hard even to approximately maximize the number of placed tiles (allowing blanks), while satisfying the compatibility constraint between nonblank tiles, within a factor of 0.9999999851. (On the other hand, there is an easy -approximation.) This is the first (correct) proof of inapproximability for edge-matching and jigsaw puzzles. Along the way, we prove NP-hardness of distinguishing, for a directed graph on nodes, between having a Hamiltonian path (length ) and having at most edges that form a vertex-disjoint union of paths. We use this gap hardness and gap-preserving reductions to establish similar gap hardness for jigsaw and edge-matching puzzles.
Keywords
Cite
@article{arxiv.1701.00146,
title = {Even $1 \times n$ Edge-Matching and Jigsaw Puzzles are Really Hard},
author = {Jeffrey Bosboom and Erik D. Demaine and Martin L. Demaine and Adam Hesterberg and Pasin Manurangsi and Anak Yodpinyanee},
journal= {arXiv preprint arXiv:1701.00146},
year = {2017}
}
Comments
22 pages, 9 figures