Proceedings

A Bitwise GAC Algorithm for Alldifferent Constraints

Download BibTeX Cite

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

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

Abstract

The generalized arc consistency (GAC) algorithm is the prevailing solution for alldifferent constraint problems. The core part of GAC for alldifferent constraints is excavating and enumerating all the strongly connected components (SCCs) of the graph model. This causes a large amount of complex data structures to maintain the node information, leading to a large overhead both in time and memory space. More critically, the complexity of the data structures further precludes the coordination of different optimization schemes for GAC. To solve this problem, the key observation of this paper is that the GAC algorithm only cares whether a node of the graph model is in an SCC or not, rather than which SCCs it belongs to. Based on this observation, we propose AllDiffbit, which employs bitwise data structures and operations to efficiently determine if a node is in an SCC. This greatly reduces the corresponding overhead, and enhances the ability to incorporate existing optimizations to work in a synergistic way. Our experiments show that AllDiffbit outperforms the state-of-the-art GAC algorithms over 60%.

  1. [Berge, 1973] Claude Berge. Graphs and Hypergraphs. North-Holland Publishing Company, 1973.
  2. [Bessiere et al., 2009] Christian Bessiere, George Katsire- los, Nina Narodytska, Claude-Guy Quimper, and Toby Walsh. Decompositions of all different, global cardinality and related constraints. In International Joint Conference on Artificial Intelligence, pages 419-424, 2009. IJCAI
  3. [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.
  4. [Cheriyan and Mehlhorn, 1996] Joseph Cheriyan and Kurt Mehlhorn. Algorithms for dense graphs and networks on the random access computer. Algorithmica, 15(6):521- 549, 1996.
  5. [Dechter and Meiri, 1994] Rina Dechter and Itay Meiri. Ex- perimental evaluation of preprocessing algorithms for constraint satisfaction problems. Artificial Intelligence, 68(2):211-241, 1994.
  6. [Demeulenaere et al., 2016] Jordan Demeulenaere, Renaud Hartert, Christophe Lecoutre, Guillaume Perez, Laurent Perron, Jean-Charles Régin, and Pierre Schaus. Compact- table: efficiently filtering table constraints with reversible sparse bit-sets. In Principles and Practice of Constraint Programming: 22nd International Conference, CP 2016, Toulouse, France, September 5-9, 2016, Proceedings 22, pages 207-223. Springer, 2016.
  7. [Ford and Fulkerson, 1956] L. R. Ford and D. R. Fulkerson. Maximal flow through a network. Canadian Journal of Mathematics, 8:399-404, 1956.
  8. [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.
  9. [Lauriere, 1978] Jena-Lonis Lauriere. A language and a pro- gram for stating and solving combinatorial problems. Ar- tificial intelligence, 10(1):29-127, 1978.
  10. [Leconte, 1996] Michel Leconte. A bounds-based reduction scheme for constraints of difference. In Proceedings of the Constraint-96 International Workshop on Constraint- Based Reasoning, pages 19-28, 1996.
  11. [Lecoutre and Vion, 2008] Christophe Lecoutre and Julien Vion. Enforcing arc consistency using bitwise operations. Constraint Programming Letters (CPL), 2:21-35, 2008.
  12. [Li et al., 2021] Zhe Li, Zhezhou Yu, Hongbo Li, Jinsong Guo, and Zhanshan Li. Revisiting the efficacy of weak consistencies: a study of forward checking. Science China Information Sciences, 64:1-3, 2021.
  13. [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 International Joint Conference on Artificial Intelligence, pages 245-250, 2003. IJCAI
  14. [Prud'homme et al., 2017] Charles Prud'homme, Jean- Guillaume Fages, and Xavier Lorca. Choco Documenta- tion. TASC -LS2N CNRS UMR 6241, COSLING S.A.S., 2017.
  15. [Régin, 1994] Jean-Charles Régin. A filtering algorithm for constraints of difference in csps. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 94, pages 362-367, 1994.
  16. [Tarjan, 1972] Robert Tarjan. Depth-first search and linear graph algorithms. SIAM journal on computing, 1(2):146- 160, 1972.
  17. [Van Kessel and Quimper, 2012] Philippe Van Kessel and Claude-Guy Quimper. Filtering algorithms based on the word-ram model. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 26, 2012.
  18. [Wang et al., 2016] Ruiwei Wang, Wei Xia, Roland HC Yap, and Zhanshan Li. Optimizing simple tabular reduction with a bitwise representation. In International Joint Con- ference on Artificial Intelligence, pages 787-795, 2016. IJCAI
  19. [Zhang et al., 2017] Xizhe Zhang, Jianfei Han, and Weix- iong Zhang. An efficient algorithm for finding all possible input nodes for controlling complex networks. Scientific Reports, 7(1):10677, 2017.
  20. [Zhang et al., 2018] Xizhe Zhang, Qian Li, and Weixiong Zhang. A fast algorithm for generalized arc consistency of the alldifferent constraint. In International Joint Con- ference on Artificial Intelligence, pages 1398-1403, 2018. IJCAI
  21. [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 International Joint Conference on Artificial Intelligence, 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