Abstract
We prove that path puzzles with complete row and column information—or equivalently, 2D orthogonal discrete tomography with Hamiltonicity constraint—are strongly NP-complete, ASP-complete, and #P-complete. Along the way, we newly establish ASP-completeness and #P-completeness for 3-Dimensional Matching and Numerical\(3\)-Dimensional Matching.
Similar content being viewed by others
Notes
Most sets of row and column constraints are ambiguous; constraining the output image makes the problem harder by preventing an easy image from being found instead.
Section 3.2.4 of [8] proves that 1-in-3-SAT is ASP-hard. Unfortunately, their problem definition allows negative clauses, while we need Positive 1-in-3-SAT.
In [6], Positive 1-in-3-SAT is called “1-Ex3MonoSat”.
If a Numerical\(4\)-Dimensional Matching instance has any elements \(\ge t\), it trivially has no solutions (as all elements are positive). Otherwise, we can convert it to an instance with this property by adding 2t to each element in W, X, Y, Z and changing the target sum from t to \({\hat{t}} = 9 t\). Then every element is strictly between 2t and 3t, and thus strictly between \({\hat{t}}/5 = 9t / 5\) and \({\hat{t}}/3 = 9t / 3\).
If a Numerical\(3\)-Dimensional Matching instance has any elements \(\ge t\), it trivially has no solutions (as all elements are positive). Otherwise, we can convert it to an instance with this property by adding t to each element in X, Y, Z and changing the target sum from t to \({\hat{t}} = 4 t\). Then every element is strictly between t and 2t, and thus strictly between \({\hat{t}}/4 = 4t / 4\) and \({\hat{t}}/2 = 4t / 2\).
References
Antonick, G.: Roderick Kimball’s Path Puzzles. The New York Times: Numberplay 28 (2014). https://wordplay.blogs.nytimes.com/2014/07/28/path-2/
Dyer, M.E., Frieze, A.M.: Planar 3DM is NP-complete. J. Algorithms 7(2), 174–184 (1986)
Del Lungo, A., Navat, M.: Reconstruction of connected sets from two projections. In: Herman and Kuba [5], chapter 7
Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman & Co., New York (1979)
Herman, G.T., Kuba, A. (eds.): Discrete Tomography: Foundations, Algorithms, and Applications. Birkhäuser, Basel (2012)
Hunt III, H.B., Marathe, M.V., Radhakrishnan, V., Stearns, R.E.: The complexity of planar counting problems. SIAM J. Comput. 27(4), 1142–1167 (1998)
Kimball, R.: Path Puzzles, 2nd edn, Vol. 10. Roderick Kimball (2013)
Seta, T.: The Complexities of Puzzles, Cross Sum, and Their Another Solution Problems (ASP). Senior thesis, University of Tokyo (2002)
Valiant, L.G.: The complexity of enumeration and reliability problems. SIAM J. Comput. 8(3), 410–421 (1979)
Acknowledgements
We thank Jayson Lynch for useful discussions and debugging help, and Quanquan Liu for help in constructing the figures for this paper. Most figures were produced using SVG Tiler (https://github.com/edemaine/svgtiler).
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Solution to the Font Puzzles
Solution to the Font Puzzles
See Fig. 8.
Rights and permissions
About this article
Cite this article
Bosboom, J., Demaine, E.D., Demaine, M.L. et al. Path Puzzles: Discrete Tomography with a Path Constraint is Hard. Graphs and Combinatorics 36, 251–267 (2020). https://doi.org/10.1007/s00373-019-02092-5
Received:
Revised:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00373-019-02092-5