Skip to main content
Log in

The Complexity of Grid Coloring

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

Abstract

A c-coloring of the grid GN,M = [N] × [M] is a mapping of GN,M into [c] such that no four corners forming a rectangle have the same color. In 2009 a challenge was proposed to find a 4-coloring of G17,17. Though a coloring was produced, finding it proved to be difficult. This raises the question of whether there is some complexity lower bound. Consider the following problem: given a partial c-coloring of the GN,M grid, can it be extended to a full c-coloring? We show that this problem is NP-complete. We also give a Fixed Parameter Tractable algorithm for this problem with parameter c.

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
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13

Similar content being viewed by others

References

  1. Bacher, R., Eliahou, S.: Extremal binary matrices without constant 2-squares. J. Combinatorics 1(1), 77–100 (2010). https://doi.org/10.4310/JOC.2010.v1.n1.a6

    Article  MathSciNet  MATH  Google Scholar 

  2. Fenner, S., Gasarch, W., Glover, C., Purewal, S.: Rectangle free colorings of grids. arXiv:1005.3750 (2012)

  3. Gasarch, W.: The 17×17 challenge. Worth $289.00. This is not a joke. 30 November 2009 entry on ComplexityBlog (Google Fortnow Blog) (2009)

  4. Homer, S., Longpré, L.: On reductions of NP sets to sparse sets. J. Comput. Syst. Sci. 48(2), 324–336 (1994). https://doi.org/10.1016/S0022-0000(05)80006-6

    Article  MathSciNet  MATH  Google Scholar 

  5. Karp, R., Lipton, R.: Some connections between nonuniform and uniform complexity classes. In: Proceedings of the twelfth annual ACM symposium on the theory of computing, Los Angeles CA, pp. 302–309 (1980)

  6. Van Kreveld, M.J., De Berg, M.: Finding squares and rectangles in sets of points. BIT 31(2), 202–219 (1991). https://doi.org/10.1007/BF01931281

    Article  MathSciNet  MATH  Google Scholar 

  7. Mahaney, S.: Sparse complete sets for NP: solution to a conjecture of Berman and Hartmanis. J. Comput. Syst. Sci. 25, 130–143 (1982)

    Article  MathSciNet  MATH  Google Scholar 

  8. Steinbach, B. (ed.): Recent Progress in the Boolean Domain. Cambridge Scholars Publishing, Newcastle upon Tyne, UK (2014)

  9. Steinbach, B., Posthoff, C.: Extremely complex 4-colored rectangle-free grids: solution of open multiple-valued problems. In: Miller, D.M., Gaudet, V.C. (eds.) 42nd IEEE international symposium on multiple-valued logic, ISMVL 2012, Victoria, BC, Canada, 14-16 May 2012, pp. 37–44. IEEE Computer Society, https://doi.org/10.1109/ISMVL.2012.12 (2012)

  10. Steinbach, B., Posthoff, C.: The solution of ultra large grid problems. In: 21st International workshop on post-binary USLI Systems (2012)

  11. Steinbach, B., Posthoff, C.: Utilization of permutation classes for solving extremely complex 4-colorable rectangle-free grids. In: Proceedings of the IEEE 2012 international conference on systems and informatics (2012)

  12. Steinbach, B., Posthoff, C.: Rectangle-free colorings of extremely complex grids using 4 colors. J. Multiple Valued Log. Soft Comput. 21(5-6), 609–625 (2013). http://www.oldcitypublishing.com/journals/mvlsc-home/mvlsc-issue-contents/mvlsc-volume-21-number-5-6-2013/mvlsc-21-5-6-p-609-625/

    MathSciNet  MATH  Google Scholar 

  13. Steinbach, B., Posthoff, C.: Solution of the last open four-colored rectangle-free grid: an extremely complex multiple-valued problem. In: 43rd IEEE international symposium on multiple-valued logic, ISMVL 2013, Toyama, Japan, 22-24 May 2013, pp. 302–309. IEEE Computer Society, https://doi.org/10.1109/ISMVL.2013.51 (2013)

  14. Steinbach, B., Posthoff, C.: The last unsolved four-colored rectangle-free grid: the solution of extremely complex multiple-valued problems. J. Multiple Valued Log. Soft Comput. 25(4-5), 461–490 (2015). http://www.oldcitypublishing.com/journals/mvlsc-home/mvlsc-issue-contents/mvlsc-volume-25-number-4-5-2015/mvlsc-25-4-5-p-461-490/

    MathSciNet  MATH  Google Scholar 

Download references

Acknowledgements

We thank Amy Apon, Doug Chen, Jacob Gilbert, Matt Kovacs-Deak, Stasys Junka, Jon Katz, Clyde Kruskal, Nathan Hayes, Erika Melder, Erik Metz, and Rishab Pallepati for proofreading and discussion.

We thank Wing Ning Li for pointing out that the case of N,M binary, while it seems to not be in NP, is actually unknown.

We thank Jacob Gilbert, David Harris, and Daniel Marx for pointing out many improvements in the fixed parameter algorithm which we subsequently used.

We thank Tucker Bane, Richard Chang, Peter Fontana, David Harris, Jared Marx-Kuo, Jessica Shi, and Marius Zimand, for listening to Bill present these results and hence clarifying them.

We thank the referee for many helpful comments including a complete reworking of the proof of Theorem 3.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to William Gasarch.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This article belongs to the Topical Collection: Commemorative Issue for Alan L. Selman Guest Editors: Mitsunori Ogihara, Elvira Mayordomo, Atri Rudra

Rights and permissions

Springer Nature or its licensor holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Apon, D., Gasarch, W. & Lawler, K. The Complexity of Grid Coloring. Theory Comput Syst 67, 521–547 (2023). https://doi.org/10.1007/s00224-022-10098-5

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-022-10098-5

Keywords

Mathematics Subject Classification 2010

Navigation