Proceedings

Bimodal Depth-First Search for Scalable GAC for AllDifferent

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 2610-2618.

https://doi.org/10.24963/ijcai.2025/291

Abstract

We propose a version of DFS designed for Constraint Programming, called bimodal DFS, that scales to both sparse and dense graphs. It runs in O(n + ~m) time, where ~m is the sum, for each vertex v, of the minimum between the numbers of successors and non-successors of v.

Integrating it into Régin’s GAC algorithm for the AllDifferent constraint results in faster performance as the problem size increases, outperforming a GPU-accelerated version.

In the vast majority of our tests, GAC now performs similarly to BC in terms of speed, but is able to solve more problems.

  1. [Beldiceanu et al., 2006] Nicolas Beldiceanu, Irit Katriel, and Sven Thiel. Filtering Algorithms for the Same and UsedBy Constraints. Archives of Control Sciences, Special Issue on constraint programming for decision and control, 16(2):191-220, 2006.
  2. [Dahlhaus et al., 2002] Elias Dahlhaus, Jens Gustedt, and Ross M. McConnell. Partially complemented represen- tations of digraphs. Discrete Mathematics & Theoretical Computer Science, 5, 2002.
  3. [de Saint-Marcq et al., 2013] Vianney le Clément de Saint- Marcq, Pierre Schaus, Christine Solnon, and Christophe Lecoutre. Sparse-sets for domain implementation. In CP workshop on Techniques foR Implementing Constraint programming Systems (TRICS), pages 1-10, 2013.
  4. [Gent et al., 2008] Ian P. Gent, Ian Miguel, and Peter Nightingale. Generalised arc consistency for the alldiffer- ent constraint: An empirical survey. Artificial Intelligence, 172(18):1973-2000, 2008.
  5. [Hopcroft and Karp, 1973] John E. Hopcroft and Richard M. Karp. An nˆ5/2 algorithm for maximum matchings in bi- partite graphs. SIAM Journal on computing, 2(4):225-231, 1973.
  6. [Joeris et al., 2017] Benson Joeris, Nathan Lindzey, Ross M. McConnell, and Nissa Osheim. Simple dfs on the comple- ment of a graph and on partially complemented digraphs. Information Processing Letters, 117:35-39, 2017.
  7. [Kaya and Hooker, 2006] Latife Genc ¸Kaya and John N. Hooker. A filter for the circuit constraint. In Frédéric Ben- hamou, editor, Principles and Practice of Constraint Pro- gramming -CP 2006, 12th International Conference, CP 2006, Nantes, France, September 25-29, 2006, Proceed- ings, volume 4204 of Lecture Notes in Computer Science, pages 706-710. Springer, 2006.
  8. [Knuth, 2000] Donald Ervin Knuth. Dancing links. arXiv e-prints, page cs/0011047, November 2000.
  9. [Kuhn, 2004] Harold W. Kuhn. The hungarian method for the assignment problem. Naval Research Logistics (NRL), 52(1):7-21, 2004.
  10. [Laurière, 1978] Jean-Louis Laurière. A Language and a Program for Stating and Solving Combinatorial Problems. Artificial Intelligence, 10(1):29-127, 1978.
  11. [Leiserson et al., 1994] Charles Eric Leiserson, Ronald L. Rivest, Thomas H. Cormen, and Clifford Stein. Introduc- tion to algorithms, volume 3. MIT press Cambridge, MA, USA, 1994.
  12. [Li et al., 2023] Zhe Li, Yaohua Wang, and Zhanshan Li. A bitwise gac algorithm for alldifferent constraints. In IJCAI, pages 1988-1995, 2023. IJCAI
  13. [Lindzey, 2014] Nathan Lindzey. Speeding up graph algo- rithms via switching classes. In International Workshop on Combinatorial Algorithms, pages 238-249. Springer, 2014.
  14. [López-Ortiz et al., 2003] Alejandro López-Ortiz, Claude- Guy Quimper, John Tromp, and Peter Van Beek. A fast and simple algorithm for bounds consistency of the alld- ifferent constraint. In IJCAI, volume 3, pages 245-250, 2003. IJCAI
  15. [Prud'homme and Fages, 2022] Charles Prud'homme and Jean-Guillaume Fages. Choco-solver: A java library for constraint programming. Journal of Open Source Soft- ware, 7(78):4708, 2022.
  16. [Régin, 1994] Jean-Charles Régin. A filtering algorithm for constraints of difference in csps. In AAAI, volume 94, pages 362-367, 1994.
  17. [Rossi et al., 2006] Francesca Rossi, Peter Van Beek, and Toby Walsh. Handbook of constraint programming. El- sevier, 2006.
  18. [Setubal, 1993] João C. Setubal. New experimental results for bipartite matching. Proceedings of netflow93, pages 211-216, 1993.
  19. [Setubal, 1996] João C. Setubal. Sequential and parallel experimental results with bipartite matching algorithms. Univ. of Campinas, Tech. Rep. IC-96-09, 1996.
  20. [Stuckey et al., 2010] Peter J. Stuckey, Ralph Becket, and Julien Fischer. Philosophy of the MiniZinc challenge. Constraints, 15:307-316, 2010.
  21. [Tardivo et al., 2023] Fabio Tardivo, Agostino Dovier, An- drea Formisano, Laurent Michel, and Enrico Pontelli. Constraint propagation on GPU: A case study for the alld- ifferent constraint. J. Log. Comput., 33(8):1734-1752, 2023.
  22. [Tarjan, 1972] Robert Endre Tarjan. Depth-first search and linear graph algorithms. SIAM J. Comput., 1(2):146-160, 1972.
  23. [Van Hentenryck et al., 1992] Pascal Van Hentenryck, Yves Deville, and Choh-Man Teng. A generic arc-consistency algorithm and its specializations. Artificial intelligence, 57(2-3):291-321, 1992.
  24. [Zhang et al., 2018] Xizhe Zhang, Qian Li, and Weixiong Zhang. A fast algorithm for generalized arc consistency of the alldifferent constraint. In IJCAI, pages 1398-1403, 2018. IJCAI
  25. [Zhang et al., 2021] Xizhe Zhang, Jian Gao, Yizhi Lv, and Weixiong Zhang. Early and efficient identification of use- less constraint propagation for alldifferent constraints. In Proceedings of the Twenty-Ninth International Conference on International Joint Conferences on Artificial Intelli- gence, pages 1126-1133, 2021. IJCAI
  26. [Zhen et al., 2023] Luhan Zhen, Zhanshan Li, Yanzhi Li, and Hongbo Li. Eliminating the computation of strongly connected components in generalized arc consistency al- gorithm for alldifferent constraint. In IJCAI, pages 2049- 2057, 2023. IJCAI

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards