Proceedings

Early and Efficient Identification of Useless Constraint Propagation for Alldifferent Constraints

Video Download BibTeX Cite

Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence. Main track. Pages 1126-1133.

https://doi.org/10.24963/ijcai.2020/157

Abstract

Constraints propagation and backtracking are two basic techniques for solving constraint satisfaction problems (CSPs). During the search for a solution, the variable and value pairs that do not belong to any solution can be discarded by constraint propagation to ensure generalized arc consistency so as to avoid the fruitless search. However, constraint propagation is frequently invoked often with little effect on many CSPs. Much effort has been devoted to predicting when to invoke constraint propagation for solving a CSP; however, no effective approach has been developed for the alldifferent constraint. Here we present a novel theorem for identifying the edges in a value graph of alldifferent constraint whose removal can significantly reduce useless constraint propagation. We prove that if an alternating cycle exists for a prospectively removable edge that represents a variable-value assignment, the edge (and the assignment) can be discarded without constraint propagation. Based on this theorem, we developed a novel optimizing technique for early detection of useless constraint propagation which can be incorporated in any existing algorithm for alldifferent constraint. Our implementation of the new method achieved speedup by a factor of 1-5 over the state-of-art approaches on 93 benchmark problem instances in 8 domains. Furthermore, the new algorithm is scalable well and runs increasingly faster than the existing methods on larger problems.

  1. function Strongconnect(v)
  2. DFS[v] ← index; lowLink[v] ← index; index ← index + 1;
  3. S.push(v);
  4. addCycles (lowLink[w], index-1)
  5. while inCycles(DE.top()) = true do
  6. pop nodes before v and pop v from S, add them to SCCs as an SCC; unconnected←true;
  7. if unconnected = false and DE is empty then
  8. for each pair (a', b') ∈cycles 25. if interval [a, b] is overlapped with interval [a',b'] then
  9. a'←min(a',a) and b'←max(b',b); 27. return 28. cycles.push(a, b) 29. return
  10. function inCycles (e(a,b))
  11. for each pair (a', b') ∈cycles 32. if both DFS[a] and DFS[b] are in the interval [a', b'] then 33. return true 34. return false References
  12. [Apt, 1998] Apt, Krzysztof R. The Essence of Constraint Pr opagation. Theoretical Computer Science, pages 179-21 0, 1998.
  13. [Berge, 1973] Berge, Claude. Graphs and Hypergraphs. Nor th-Holland Publishing Company, New York, 1973.
  14. [Boisberranger et al., 2013] Du Boisberranger J, Danièle Ga rdy, Lorca, X and Truchet, C. When Is It Worthwhile to Propagate a Constraint ? A Probabilistic Analysis of All Different. Analytic Algorithmics and Combinatorics, 201 3. Cormen et al., 1990]
  15. Thomas H. Cormen, Charles E. Leiser son, and Ronald L. Rivest. Introduction to Algorithms. T he MIT Press, 1990.
  16. [Frisch et al., 2005] Alan M. Frisch, Chris Jefferson, Bernad ette Martínez-Hernández, and Ian Miguel. The Rules of Constraint Modelling. In International Joint Conference on Artificial Intelligence, 2005. IJCAI
  17. [Gent et al., 2006] Ian P. Gent, Christopher Jefferson, and Ia n Miguel. MINION: A Fast, Scalable, Constraint Solver, (slides) in Proceedings of the 17th European Conference on Artificial Intelligence (ECAI), 2006.
  18. [Gent et al., 2008] Ian P. Gent, Ian Miguel, and Peter Nighti ngale. Generalized arc consistency for the alldifferent co nstraint: An empirical survey. Artificial Intelligence, 172 (18): 1973-2000, 2008.
  19. [Golomb and Baumert, 1965] Solomon W. Golomb and Leo nard D.Baumert. Backtrack Programming. Journal of the ACM (JACM), 12(4):516-524,1965.
  20. [Hentenryck et al., 1992] Pascal Van Hentenryck, Yves Dev ille, and Choh-Man Teng. A Generic Arc-Consistency Al gorithm and Its Specializations. Artificial Intelligence, 57 (2-3): 291-321, 1992.
  21. [Hoeve, 2001] Willem Jan Hoeve. The Alldifferent Constrai nt: A Survey. In Proceedings Sixth Annual Workshop of t he ERCIM Working Group on Constraints, 1-42, 2001.
  22. [Katriel, 2006] Irit Katriel. Expected-Case Analysis for Dela yed Filtering. International Conference on Integration of Artificial Intelligence. Springer-Verlag, 2006.
  23. [Lauriere, 1978] Jena-Lonis Lauriere. A language and a prog ram for stating and solving combinatorial problems. Artif icial intelligence 10(1): 29-127, 1978.
  24. [Nightingale et al., 2017] Peter Nightingale, Özgür Akgün, I an Gent, Christopher Jefferson, Ian Miguel, and Sprackle n, P. Automatically Improving Constraint Models in Savi le Row. Artificial Intelligence, 251, 2017.
  25. [Régin, 1994] Jean-Charles Régin. A filtering algorithm for constraints of difference in CSPs. Twelfth National Conference on Artificial Intelligence American Association for Artificial Intelligence, pages 362-367, 1994.
  26. [Rossi et al., 2006] Francesca Rossi, Peter van Beek, and Toby Walsh. Handbook of Constraint Programming. Elsevier, 2006.
  27. [Schulte et al., 2004] Christian Schulte and Peter J. Stuckey. Speeding up constraint propagation. Principles and Practice of Constraint Programming -CP 2004, International Conference, CP 2004, Toronto, Canada, September 27 -October 1, 2004, Proceedings DBLP, pages 619-633, 2004.
  28. [Tarjan, 1972] Robert Tarjan. Depth-first search and linear graph algorithms. SIAM journal on computing 1(2): 146160, 1972.
  29. [Thalheim, 1992] Bernhard Thalheim. Fundamentals of Car dinality Constraints. In Lecture Notes in Computer Scien ce (Including Subseries Lecture Notes in Artificial Intelli gence and Lecture Notes in Bioinformatics), 1992.
  30. [Zhang et al., 2018] Xizhe Zhang, Qian Li, and Weixiong Z hang. A Fast Algorithm for Generalized Arc Consistency of the Alldifferent Constraint Joint Laboratory of Artific ial Intelligence and Precision Medicine of China Medical University And. Proceedings of the Twenty-Seventh Inte rnational Joint Conference on Artificial Intelligence, Jul y, 1398-1403, 2018.

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

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