Skip to main content

A Weighted Counting Algorithm for the Circuit Constraint

  • Conference paper
  • First Online:
Integration of Constraint Programming, Artificial Intelligence, and Operations Research (CPAIOR 2023)

Abstract

The Circuit constraint is useful to model many combinatorial problems in Constraint Programming. cp solvers extended with Belief Propagation, such as MiniCPBP, require that constraints be equipped with weighted counting algorithms in order to propagate probability mass functions over domains. This is not yet the case for Circuit. To this purpose we introduce a probabilistic sampling algorithm to count Hamiltonian circuits in a weighted graph. We show that our resulting estimator is unbiased, measure its empirical accuracy, and evaluate its impact on search performance.

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 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.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

Notes

  1. 1.

    https://github.com/PesantGilles/MiniCPBP.

  2. 2.

    https://github.com/MiniZinc/mzn-challenge/blob/develop/2021/p1f-pjs/p1f-pjs.mzn.

References

  1. Babaki, B., Omrani, B., Pesant, G.: Combinatorial search in CP-based iterated belief propagation. In: Simonis, H. (ed.) CP 2020. LNCS, vol. 12333, pp. 21–36. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-58475-7_2

    Chapter  Google Scholar 

  2. Benchimol, P., van Hoeve, W.J., Régin, J.C., Rousseau, L.M., Rueher, M.: Improved filtering for weighted circuit constraints. Constraints An Int. J. 17(3), 205–233 (2012). https://doi.org/10.1007/s10601-012-9119-x

    Article  MathSciNet  MATH  Google Scholar 

  3. Isoart, N., Régin, J.C.: A linear time algorithm for the k-cutset constraint. In: Michel, L.D. (ed.) 27th International Conference on Principles and Practice of Constraint Programming (CP 2021). Leibniz International Proceedings in Informatics (LIPIcs), vol. 210, pp. 29:1–29:16. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, Dagstuhl, Germany (2021). https://drops.dagstuhl.de/opus/volltexte/2021/15320

  4. Pesant, G.: From support propagation to belief propagation in constraint programming. J. Artif. Intell. Res. 66, 123–150 (2019). https://doi.org/10.1613/jair.1.11487

    Article  MathSciNet  MATH  Google Scholar 

  5. Pesant, G., Gendreau, M., Potvin, J.Y., Rousseau, J.M.: An exact constraint logic programming algorithm for the traveling salesman problem with time windows. Transp. Sci. 32(1), 12–29 (1998). https://doi.org/10.1287/trsc.32.1.12

    Article  MATH  Google Scholar 

  6. Rasmussen, L.E.: Approximating the permanent: a simple approach. Random Struct. Algorithms 5(2), 349–362 (1994). https://doi.org/10.1002/rsa.3240050208

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gilles Pesant .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Pezzoli, G., Pesant, G. (2023). A Weighted Counting Algorithm for the Circuit Constraint. In: Cire, A.A. (eds) Integration of Constraint Programming, Artificial Intelligence, and Operations Research. CPAIOR 2023. Lecture Notes in Computer Science, vol 13884. Springer, Cham. https://doi.org/10.1007/978-3-031-33271-5_24

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-33271-5_24

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-33270-8

  • Online ISBN: 978-3-031-33271-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics