Proceedings

Eliminating the Computation of Strongly Connected Components in Generalized Arc Consistency Algorithm for AllDifferent Constraint

Download BibTeX Cite

Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence. Main Track. Pages 2049-2057.

https://doi.org/10.24963/ijcai.2023/228

Abstract

AllDifferent constraint is widely used in Constraint Programming to model real world problems. Existing Generalized Arc Consistency (GAC) algorithms map an AllDifferent constraint onto a bipartite graph and utilize the structure of Strongly Connected Components (SCCs) in the graph to filter values. Calculating SCCs is time-consuming in the existing algorithms, so we propose a novel GAC algorithm for AllDifferent constraint in this paper, which eliminates the computation of SCCs. We prove that all redundant edges in the bipartite graph point to some alternating cycles. Our algorithm exploits this property and uses a more efficient method to filter values, which is based on breadth-first search. Experimental results on the XCSP3 benchmark suite show that our algorithm considerably outperforms the state-of-the-art GAC algorithms.

  1. [Berge, 1973] Claude Berge. Graphs and hypergraphs. American Elsevier Publishing Company, 1973.
  2. [Bessiere and Régin, 1997] Christian Bessiere and Jean- Charles Régin. Arc consistency for general constraint net- works: preliminary results. In IJCAI, volume 2, pages 398-404.
  3. [Bessiere et al., 2004] Christian Bessiere, Emmanuel He- brard, Brahim Hnich, and Toby Walsh. Disjoint, partition and intersection constraints for set and multiset variables. CP, 4:138-152, 2004.
  4. [Boussemart et al., 2004] Frédéric Boussemart, Fred Hemery, Christophe Lecoutre, and Lakhdar Sais. Boost- ing systematic search by weighting constraints. In ECAI, volume 16, page 146, 2004.
  5. [Boussemart et al., 2016] Frédéric Boussemart, Christophe Lecoutre, Gilles Audemard, and Cédric Piette. Xcsp3: an integrated format for benchmarking combinatorial con- strained problems. arXiv preprint arXiv:1611.03398, 2016.
  6. [Bundy and Wallen, 1984] Alan Bundy and Lincoln Wallen. Breadth-first search. In Catalogue of artificial intelligence tools, pages 13-13. Springer, 1984.
  7. [Fellows et al., 2013] Michael Fellows, Tobias Friedrich, Danny Hermelin, Nina Narodytska, and Frances Rosa- mond. Constraint satisfaction problems: Convexity makes alldifferent constraints tractable. Theoretical Computer Science, 472:81-89, 2013.
  8. [Gent et al., 2008] Ian P Gent, Ian Miguel, and Peter Nightingale. Generalised arc consistency for the alldif- ferent constraint: An empirical survey. AI, 172(18):1973- 2000, 2008.
  9. [Jean-Charles, 1996] Régin Jean-Charles. Generalized arc consistency for global cardinality constraint. American Association for Artificial Intelligence (AAAI 1996), pages 209-215, 1996.
  10. [Kuhn, 1955] Harold W Kuhn. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83-97, 1955.
  11. [Lauriere, 1978] Jena-Lonis Lauriere. A language and a pro- gram for stating and solving combinatorial problems. AI, 10(1):29-127, 1978.
  12. [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
  13. [Prud'homme et al., 2016] Charles Prud'homme, Jean- Guillaume Fages, and Xavier Lorca. Choco solver documentation. TASC, INRIA Rennes, LINA CNRS UMR, 6241, 2016.
  14. [Puget, 1998] Jean-Franc ¸ois Puget. A fast algorithm for the bound consistency of alldiff constraints. In AAAI, pages 359-366, 1998.
  15. [Régin, 1994] Jean-Charles Régin. A filtering algorithm for constraints of difference in csps. In AAAI, volume 94, pages 362-367, 1994.
  16. [Rossi et al., 2006] Francesca Rossi, Peter Van Beek, and Toby Walsh. Handbook of constraint programming. El- sevier, 2006.
  17. [Shaw, 2004] Paul Shaw. A constraint for bin packing. In Principles and Practice of Constraint Programming-CP 2004: 10th International Conference, CP 2004, Toronto, Canada, September 27-October 1, 2004. Proceedings 10, pages 648-662. Springer, 2004.
  18. [Suijlen et al., 2022] Wijnand Suijlen, Félix de Framond, Arnaud Lallouet, and Antoine Petitet. A parallel algorithm for gac filtering of the alldifferent constraint. In Interna- tional Conference on Integration of Constraint Program- ming, Artificial Intelligence, and Operations Research, pages 390-407. Springer, 2022.
  19. [Tardivo et al., 2022] Fabio Tardivo, Agostino Dovier, An- drea Formisano, Laurent Michel, and Enrico Pontelli. Constraints propagation on gpu: A case study for alldif- ferent. In PCILC, CEUR-WS, 2022.
  20. [Tarjan, 1972] Robert Tarjan. Depth-first search and linear graph algorithms. SIAM journal on computing, 1(2):146- 160, 1972,.
  21. [Van Hoeve et al., 2006] Willem-Jan Van Hoeve, Gilles Pe- sant, Louis-Martin Rousseau, and Ashish Sabharwal. Re- visiting the sequence constraint. In Principles and Prac- tice of Constraint Programming-CP 2006: 12th Interna- tional Conference, CP 2006, Nantes, France, September 25-29, 2006. Proceedings 12, pages 620-634. Springer, 2006.
  22. [Van Hoeve, 2001] Willem-Jan Van Hoeve. The alldifferent constraint: A survey. arXiv preprint cs/0105015, 2001.
  23. [Van Kessel and Quimper, 2012] Philippe Van Kessel and Claude-Guy Quimper. Filtering algorithms based on the word-ram model. In AAAI, volume 26, pages 577-583, 2012.
  24. [Wallace, 1996] Mark Wallace. Practical applications of constraint programming. Constraints, 1(1):139-168, 1996.
  25. [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
  26. [Zhang et al., 2020] Xizhe Zhang, Jian Gao, Yizhi Lv, and Weixiong Zhang. Early and efficient identification of use- less constraint propagation for alldifferent constraints. In IJCAI, pages 1126-1133, 2020. IJCAI

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

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