Skip to main content

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 4741))

Abstract

In this paper we argue that an attractive and potentially very general way of achieving generalized arc consistency (GAC) on a constraint is by using unit propagation (UP) over a CNF encoding of the constraint. This approach to GAC offers a number of advantages over traditional constraint specific algorithms (propagators): it is easier to implement, it automatically provides incrementality and decrementality in a backtracking context, and it can provide clausal reasons to support learning and non-chronological backtracking. Although UP on standard CNF encodings of a constraint fails to achieve GAC, we show here that alternate CNF encodings can be used on which UP does achieve GAC. We provide a generic encoding applicable to any constraint. We also give structure specific encodings for the regular, among, and gen-sequence constraints on which UP can achieve GAC with the same run time bounds as previously presented propagators. Finally, we explain how a UP engine can be added to a CSP solver to achieve a seamless integration of constraints encoded in CNF and propagated via UP and those propagated via traditional constraint specific propagators.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Bailleux, O., Boufkhad., Y.: Efficient cnf encoding of boolean cardinality constraints. In: Rossi, F. (ed.) CP 2003. LNCS, vol. 2833, pp. 108–122. Springer, Heidelberg (2003)

    Google Scholar 

  2. Bailleux, O., Boufkhad, Y.: Full cnf encoding: The counting constraints case. In: Hoos, H.H., Mitchell, D.G. (eds.) SAT 2004. LNCS, vol. 3542, Springer, Heidelberg (2005)

    Google Scholar 

  3. Bennaceur, H.: A comparison between sat and csp techniques. Constraints 9, 123–138 (2004)

    Article  MATH  MathSciNet  Google Scholar 

  4. Bessière, C., Régin, J.C.: Arc consistency for general constraint networks: Preliminary results. In: Proc. IJCAI, pp. 398–404 (1997)

    Google Scholar 

  5. Chavira, M., Darwiche, A.: Compiling bayesian networks with local structure. In: Proc. IJCAI 2005, pp. 1306–1312 (2005)

    Google Scholar 

  6. Dimopoulos, Y., Stergiou, K.: Propagation in csp and sat. In: Benhamou, F. (ed.) CP 2006. LNCS, vol. 4204, pp. 137–151. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  7. Eén, N., Sörensson, N.: Minisat solver, http://www.cs.chalmers.se/Cs/Research/FormalMethods/MiniSat/MiniSat.html

  8. Freeman, J.W.: Improvements to Propositional Satisfiability Search Algorithms. PhD thesis, University of Pennsylvania (1995)

    Google Scholar 

  9. Gent, I.: Arc consistency in sat. In: ECAI, pp. 121–125 (2002)

    Google Scholar 

  10. Gent, I., Nightingale, P.: A new encoding of all-different into SAT. In: Proc. 3rd International Workshop on Modelling and Reformulating Constraint Satisfaction Problems, pp. 95–110 (2004)

    Google Scholar 

  11. Hebrard, E., Bessière, C., Walsh, T.: Local consistencies in sat. In: Giunchiglia, E., Tacchella, A. (eds.) SAT 2003. LNCS, vol. 2919, pp. 400–407. Springer, Heidelberg (2004)

    Google Scholar 

  12. Katsirelos, G., Bacchus, F.: Generalized nogoods in csps. In: Proc. of AAAI, pp. 390–396 (2005)

    Google Scholar 

  13. Pesant, G.: A regular language membership constraint for finite sequences of variables. In: Wallace, M. (ed.) CP 2004. LNCS, vol. 3258. Springer, Heidelberg (2004)

    Google Scholar 

  14. Quimper, C.-G., Walsh, T.: Decomposing global grammar constraints. In: Proc. of CP 2007 (2007)

    Google Scholar 

  15. Sinz, C.: Towards an optimal cnf encoding of boolean cardinality constraints. In: van Beek, P. (ed.) CP 2005. LNCS, vol. 3709, pp. 827–831. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  16. van Hoeve, W.J., Pesant, G., Rousseau, L.M., Sabharwal, A.: Revisiting the Sequence Constraint. In: Benhamou, F. (ed.) CP 2006. LNCS, vol. 4204. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  17. Walsh, T.: Sat v csp. In: Dechter, R. (ed.) CP 2000. LNCS, vol. 1894, pp. 441–456. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Christian Bessière

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Bacchus, F. (2007). GAC Via Unit Propagation. In: Bessière, C. (eds) Principles and Practice of Constraint Programming – CP 2007. CP 2007. Lecture Notes in Computer Science, vol 4741. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-74970-7_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-74970-7_12

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-74969-1

  • Online ISBN: 978-3-540-74970-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics