A Faster Algorithm for the 4-Coloring Problem

Authors Pu Wu , Huanyu Gu , Huiqin Jiang , Zehui Shao, Jin Xu



PDF
Thumbnail PDF

File

LIPIcs.ESA.2024.103.pdf
  • Filesize: 0.78 MB
  • 18 pages

Document Identifiers

Author Details

Pu Wu
  • School of Computer Science, Peking University, Beijing, China
Huanyu Gu
  • Institute Of Computing Science And Technology, Guangzhou University, China
Huiqin Jiang
  • Institute Of Computing Science And Technology, Guangzhou University, China
Zehui Shao
  • Institute Of Computing Science And Technology, Guangzhou University, China
Jin Xu
  • Key Laboratory Of High Confidence Software Technologies (Peking University), Ministry Of Education, Beijing, China
  • School of Computer Science, Peking University, Beijing, China

Cite AsGet BibTex

Pu Wu, Huanyu Gu, Huiqin Jiang, Zehui Shao, and Jin Xu. A Faster Algorithm for the 4-Coloring Problem. In 32nd Annual European Symposium on Algorithms (ESA 2024). Leibniz International Proceedings in Informatics (LIPIcs), Volume 308, pp. 103:1-103:18, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2024)
https://doi.org/10.4230/LIPIcs.ESA.2024.103

Abstract

We explore the 4-coloring problem, a fundamental combinatorial NP-hard problem. Given a graph G, the 4-coloring problem asks whether there exists a function f from the vertex set of G to {1,2,3,4} such that f(u)≠ f(v) for each edge uv of G. Such function f is referred to as a 4-coloring of G. The fastest known algorithm for the 4-coloring problem, introduced by Fomin, Gaspers, and Saurabh (COCOON 2007), exhibits a time complexity of O(1.7272ⁿ) and exponential space. In this paper, we propose an enhanced algorithm for the 4-coloring problem with a time complexity of O(1.7159ⁿ) and polynomial space. Our algorithm is deterministic and built upon a novel method. Specifically, inspired by previous algorithmic approaches for the 4-coloring problem, such as the aforementioned O(1.7272ⁿ) time algorithm, we consider the instance (G,I,S), where G is a graph and I,S are subsets of its vertex set representing vertices colored with 1 and vertices unable to be colored with 1, respectively. For a given instance (G,I,S), we aim to determine the existence of a 4-coloring f of G such that f(v) = 1 for v ∈ I and f(v)≠ 1 for v ∈ S. Our key innovation lies in recognizing that, leveraging certain combinatorial properties, the instance (G,I,S) can be efficiently solved when G-I-S is a union of K₃’s and K₄’s (where K₃ and K₄ denote complete graphs with 3 and 4 vertices, respectively). The ability to efficiently solve instances (G,I,S), where G-I-S is comprised solely of K₃’s and K₄’s, enables us to devise a branching algorithm capable of efficiently addressing instances (G,I,S), where G-I-S is not a union of K₃’s and K₄’s (the other case). Based on this innovative method, we derive our final enhanced algorithm.

Subject Classification

ACM Subject Classification
  • Mathematics of computing → Graph coloring
Keywords
  • Graph coloring
  • Graph algorithms
  • Exact algorithms

Metrics

  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    0
    PDF Downloads

References

  1. Andreas Björklund, Radu Curticapean, Thore Husfeldt, Petteri Kaski, and Kevin Pratt. Chromatic number in O(1.9999ⁿ) time? fast deterministic set partitioning under the asymptotic rank conjecture. arXiv preprint arXiv:2404.04987, 2024. Google Scholar
  2. Andreas Björklund and Thore Husfeldt. Exact algorithms for exact satisfiability and number of perfect matchings. In Automata, Languages and Programming: 33rd International Colloquium, ICALP 2006, Venice, Italy, July 10-14, 2006, Proceedings, Part I 33, pages 548-559. Springer, 2006. Google Scholar
  3. Andreas Björklund and Thore Husfeldt. Inclusion-exclusion algorithms for counting set partitions. In 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS'06), pages 575-582, 2006. Google Scholar
  4. Andreas Björklund, Thore Husfeldt, Petteri Kaski, and Mikko Koivisto. Covering and packing in linear space. In International Colloquium on Automata, Languages, and Programming, pages 727-737. Springer, 2010. Google Scholar
  5. Hans L. Bodlaender and Dieter Kratsch. An exact algorithm for graph coloring with polynomial memory. UU-CS, 2006, 2006. Google Scholar
  6. Daniel Brélaz. New methods to color the vertices of a graph. Communications of the ACM, 22(4):251-256, 1979. Google Scholar
  7. J. Randall Brown. Chromatic scheduling and the chromatic number problem. Management Science, 19(4-part-1):456-463, 1972. Google Scholar
  8. Jesper Makholm Byskov. Enumerating maximal independent sets with applications to graph colouring. Operations Research Letters, 32(6):547-556, 2004. Google Scholar
  9. Marco Chiarandini, Irina Dumitrescu, and Thomas Stützle. Stochastic local search algorithms for the graph coloring problem. In Handbook of Approximation Algorithms and Metaheuristics, pages 299-316. Chapman and Hall/CRC, 2018. Google Scholar
  10. Katie Clinch, Serge Gaspers, Abdallah Saffidine, and Tiankuang Zhang. A piecewise approach for the analysis of exact algorithms. arXiv preprint arXiv:2402.10015, 2024. Google Scholar
  11. Joseph C. Culberson and Feng Luo. Exploring the k-colorable landscape with iterated greedy. Cliques, Coloring, and Satisfiability, 26:245-284, 1993. Google Scholar
  12. David Eppstein. Improved algorithms for 3-coloring, 3-edge-coloring, and constraint satisfaction. In the 12th Annual ACM-SIAM Symposium on Discrete Algorithms, volume 1, pages 329-337, 2001. Google Scholar
  13. David Eppstein. Quasiconvex analysis of multivariate recurrence equations for backtracking algorithms. ACM Transactions on Algorithms (TALG), 2(4):492-509, 2006. Google Scholar
  14. Tomás Feder and Rajeev Motwani. Worst-case time bounds for coloring and satisfiability problems. Journal of Algorithms, 45(2):192-201, 2002. Google Scholar
  15. Fedor V. Fomin, Serge Gaspers, and Saket Saurabh. Improved exact algorithms for counting 3-and 4-colorings. In Computing and Combinatorics: 13th Annual International Conference, COCOON 2007, Banff, Canada, July 16-19, 2007. Proceedings 13, pages 65-74. Springer, 2007. Google Scholar
  16. Fedor V. Fomin, Fabrizio Grandoni, and Dieter Kratsch. A measure & conquer approach for the analysis of exact algorithms. Journal of the ACM (JACM), 56(5):1-32, 2009. Google Scholar
  17. Nobuo Funabiki and Teruo Higashino. A minimal-state processing search algorithm for graph coloring problems. IEICE Transactions on Fundamentals of Electronics, Communications and Computer Sciences, 83(7):1420-1430, 2000. Google Scholar
  18. Zoltán Füredi. The number of maximal independent sets in connected graphs. Journal of Graph Theory, 11(4):463-470, 1987. Google Scholar
  19. Serge Gaspers. Exponential time algorithms: Structures, measures, and bounds. PhD thesis, The University of Bergen, 2008. Google Scholar
  20. Serge Gaspers and Edward J. Lee. Faster graph coloring in polynomial space. Algorithmica, 85(2):584-609, 2023. Google Scholar
  21. Serge Gaspers and Gregory B. Sorkin. A universally fastest algorithm for max 2-SAT, max 2-CSP, and everything in between. Journal of Computer and System Sciences, 78(1):305-335, 2012. Google Scholar
  22. Wayne Goddard and Michael A. Henning. Independent domination in graphs: A survey and recent results. Discrete Mathematics, 313(7):839-854, 2013. Google Scholar
  23. Magnús M. Halldórsson. A still better performance guarantee for approximate graph coloring. Information Processing Letters, 45(1):19-23, 1993. Google Scholar
  24. Alain Hertz, Matthieu Plumettaz, and Nicolas Zufferey. Variable space search for graph coloring. Discrete Applied Mathematics, 156(13):2551-2560, 2008. Google Scholar
  25. Richard M. Karp. Reducibility among combinatorial problems. in Complexity of Computer Computations, pages 85-103, 1972. Google Scholar
  26. Eugene L. Lawler. A note on the complexity of the chromatic number problem. Information Processing Letters, 5(3):66-67, 1976. Google Scholar
  27. László Lovász. Coverings and colorings of hypergraphs. In Proc. 4th Southeastern Conference of Combinatorics, Graph Theory, and Computing, pages 3-12. Utilitas Mathematica Publishing, 1973. Google Scholar
  28. Enrico Malaguti, Michele Monaci, and Paolo Toth. A metaheuristic approach for the vertex coloring problem. INFORMS Journal on Computing, 20(2):302-316, 2008. Google Scholar
  29. Enrico Malaguti and Paolo Toth. A survey on vertex coloring problems. International Transactions in Operational Research, 17(1):1-34, 2010. Google Scholar
  30. Lucas Meijer. 3-coloring in time O(1.3217ⁿ). arXiv preprint arXiv:2302.13644, 2023. Google Scholar
  31. J. W. Moon and L. Moser. On cliques in graphs. Israel Journal of Mathematics, 3:23-28, 1965. Google Scholar
  32. Taha Mostafaie, Farzin Modarres Khiyabani, and Nima Jafari Navimipour. A systematic study on meta-heuristic approaches for solving the graph coloring problem. Computers & Operations Research, 120:104850, 2020. Google Scholar
  33. Ingo Schiermeyer. Deciding 3-colourability in less than O(1.415ⁿ) steps. In Graph-Theoretic Concepts in Computer Science: 19th International Workshop, WG'93 Utrecht, The Netherlands, June 16-18, 1993 Proceedings 19, pages 177-188. Springer, 1994. Google Scholar
  34. Edward C. Sewell. An improved algorithm for exact graph coloring. DIMACS Series in Computer Mathematics and Theoretical Computer Science, 26:359-373, 1996. Google Scholar
  35. Larry Stockmeyer. Planar 3-colorability is polynomial complete. ACM Sigact News, 5(3):19-25, 1973. Google Scholar
  36. Chung C. Wang. An algorithm for the chromatic number of a graph. Journal of the ACM (JACM), 21(3):385-391, 1974. Google Scholar
  37. Or Zamir. Breaking the 2ⁿ barrier for 5-coloring and 6-coloring. In 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021), pages 113:1-113:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021. Google Scholar
  38. David Zuckerman. Linear degree extractors and the inapproximability of max clique and chromatic number. In Proceedings of the thirty-eighth annual ACM Symposium on Theory of computing, pages 681-690, 2006. Google Scholar
Questions / Remarks / Feedback
X

Feedback for Dagstuhl Publishing


Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail