Skip to main content
Log in

Path Puzzles: Discrete Tomography with a Path Constraint is Hard

  • Original Paper
  • Published:
Graphs and Combinatorics Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Notes

  1. 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.

  2. See http://erikdemaine.org/fonts.

  3. 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.

  4. In [6], Positive 1-in-3-SAT is called “1-Ex3MonoSat”.

  5. 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 WXYZ 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\).

  6. 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 XYZ 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

  1. Antonick, G.: Roderick Kimball’s Path Puzzles. The New York Times: Numberplay 28 (2014). https://wordplay.blogs.nytimes.com/2014/07/28/path-2/

  2. Dyer, M.E., Frieze, A.M.: Planar 3DM is NP-complete. J. Algorithms 7(2), 174–184 (1986)

    Article  MathSciNet  Google Scholar 

  3. Del Lungo, A., Navat, M.: Reconstruction of connected sets from two projections. In: Herman and Kuba [5], chapter 7

  4. Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman & Co., New York (1979)

    MATH  Google Scholar 

  5. Herman, G.T., Kuba, A. (eds.): Discrete Tomography: Foundations, Algorithms, and Applications. Birkhäuser, Basel (2012)

    Google Scholar 

  6. 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)

    Article  MathSciNet  Google Scholar 

  7. Kimball, R.: Path Puzzles, 2nd edn, Vol. 10. Roderick Kimball (2013)

  8. Seta, T.: The Complexities of Puzzles, Cross Sum, and Their Another Solution Problems (ASP). Senior thesis, University of Tokyo (2002)

  9. Valiant, L.G.: The complexity of enumeration and reliability problems. SIAM J. Comput. 8(3), 410–421 (1979)

    Article  MathSciNet  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Justin Kopinsky.

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.

Fig. 8
figure 8

Solved font

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Revised:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00373-019-02092-5

Keywords

Navigation