Proceedings

New Algorithms for #2-SAT and #3-SAT

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 2666-2674.

https://doi.org/10.24963/ijcai.2025/297

Abstract

The #2-SAT and #3-SAT problems involve counting the number of satisfying assignments (also called models) for instances of 2-SAT and 3-SAT, respectively. In 2010, Zhou et al. (https://doi.org/10.1609/aaai.v24i1.7537) proposed an O*(1.1892^m)-time algorithm for #2-SAT and an efficient approach for #3-SAT, where m denotes the number of clauses. In this paper, we show that the weighted versions of #2-SAT and #3-SAT can be solved in O*(1.1082^m) and O*(1.4423^m) time, respectively. These results directly apply to the unweighted cases and achieve substantial improvements over the previous results. These advancements are enabled by the introduction of novel reduction rules, a refined analysis of branching operations, and the application of path decompositions on the primal and dual graphs of the formula.

  1. [Bacchus et al., 2003] Fahiem Bacchus, Shannon Dalmao, and Toniann Pitassi. Algorithms and complexity results for #sat and bayesian inference. In 44th Symposium on Foun- dations of Computer Science (FOCS 2003), 11-14 October 2003, Cambridge, MA, USA, Proceedings, pages 340-351. IEEE Computer Society, 2003.
  2. [Beigel and Eppstein, 2005] Richard Beigel and David Epp- stein. 3-coloring in time o(1.3289 n ). J. Algorithms, 54(2):168-204, 2005.
  3. [Biere et al., 2021] Armin Biere, Marijn Heule, Hans van Maaren, and Toby Walsh, editors. Handbook of Satisfiabil- ity -Second Edition, volume 336 of Frontiers in Artificial Intelligence and Applications. IOS Press, 2021.
  4. [Chavira and Darwiche, 2008] Mark Chavira and Adnan Darwiche. On probabilistic inference by weighted model counting. Artif. Intell., 172(6-7):772-799, 2008.
  5. [Chu et al., 2021] Huairui Chu, Mingyu Xiao, and Zhe Zhang. An improved upper bound for SAT. In Thirty-Fifth AAAI Conference on Artificial Intelligence, AAAI 2021, Thirty-Third Conference on Innovative Applications of Ar- tificial Intelligence, IAAI 2021, The Eleventh Symposium on Educational Advances in Artificial Intelligence, EAAI 2021, Virtual Event, February 2-9, 2021, pages 3707- 3714. AAAI Press, 2021.
  6. [Cook, 1971] Stephen A. Cook. The complexity of theorem- proving procedures. In Michael A. Harrison, Ranan B. Banerji, and Jeffrey D. Ullman, editors, Proceedings of the 3rd Annual ACM Symposium on Theory of Comput- ing, May 3-5, 1971, Shaker Heights, Ohio, USA, pages 151-158. ACM, 1971.
  7. [Cygan et al., 2016] Marek Cygan, Holger Dell, Daniel Lokshtanov, Dániel Marx, Jesper Nederlof, Yoshio Okamoto, Ramamohan Paturi, Saket Saurabh, and Mag- nus Wahlström. On problems as hard as CNF-SAT. ACM Trans. Algorithms, 12(3):41:1-41:24, 2016.
  8. [Dahllöf et al., 2005] Vilhelm Dahllöf, Peter Jonsson, and Magnus Wahlström. Counting models for 2sat and 3sat formulae. Theor. Comput. Sci., 332(1-3):265-291, 2005.
  9. [Dubois, 1991] Olivier Dubois. Counting the number of so- lutions for instances of satisfiability. Theor. Comput. Sci., 81(1):49-64, 1991.
  10. [Dudek et al., 2020] Jeffrey M. Dudek, Vu H. N. Phan, and Moshe Y. Vardi. DPMC: weighted model counting by dynamic programming on project-join trees. In Helmut Simonis, editor, Principles and Practice of Constraint Programming -26th International Conference, CP 2020, Louvain-la-Neuve, Belgium, September 7-11, 2020, Pro- ceedings, volume 12333 of Lecture Notes in Computer Sci- ence, pages 211-230. Springer, 2020.
  11. [Dueñas-Osorio et al., 2017] Leonardo Dueñas-Osorio, Kuldeep S. Meel, Roger Paredes, and Moshe Y. Vardi. Counting-based reliability estimation for power- transmission grids. In Satinder Singh and Shaul Markovitch, editors, Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, February 4-9, 2017, San Francisco, California, USA, pages 4488-4494. AAAI Press, 2017.
  12. [Fichte et al., 2019] Johannes Klaus Fichte, Markus Hecher, and Markus Zisser. An improved gpu-based SAT model counter. In Thomas Schiex and Simon de Givry, editors, Principles and Practice of Constraint Programming -25th International Conference, CP 2019, Stamford, CT, USA, September 30 -October 4, 2019, Proceedings, volume 11802 of Lecture Notes in Computer Science, pages 491- 509. Springer, 2019.
  13. [Fichte et al., 2022] Johannes Klaus Fichte, Markus Hecher, Patrick Thier, and Stefan Woltran. Exploiting database management systems and treewidth for counting. Theory Pract. Log. Program., 22(1):128-157, 2022.
  14. [Fichte et al., 2023a] Johannes Klaus Fichte, Daniel Le Berre, Markus Hecher, and Stefan Szeider. The silent (r)evolution of SAT. Commun. ACM, 66(6):64-72, 2023.
  15. [Fichte et al., 2023b] Johannes Klaus Fichte, Markus Hecher, Michael Morak, Patrick Thier, and Stefan Woltran. Solving projected model counting by utilizing treewidth and its limits. Artif. Intell., 314:103810, 2023.
  16. [Fomin and Kratsch, 2010] Fedor V. Fomin and Dieter Kratsch. Exact Exponential Algorithms. Texts in The- oretical Computer Science. An EATCS Series. Springer, 2010.
  17. [Fomin et al., 2009] Fedor V. Fomin, Serge Gaspers, Saket Saurabh, and Alexey A. Stepanov. On two techniques of combining branching and treewidth. Algorithmica, 54(2):181-207, 2009.
  18. [Gaspers and Sorkin, 2009] Serge Gaspers and Gregory B. Sorkin. A universally fastest algorithm for max 2-sat, max 2-csp, and everything in between. In Claire Mathieu, edi- tor, Proceedings of the Twentieth Annual ACM-SIAM Sym- posium on Discrete Algorithms, SODA 2009, New York, NY, USA, January 4-6, 2009, pages 606-615. SIAM, 2009.
  19. [Gomes et al., 2021] Carla P. Gomes, Ashish Sabharwal, and Bart Selman. Model counting. In Armin Biere, Mar- ijn Heule, Hans van Maaren, and Toby Walsh, editors, Handbook of Satisfiability -Second Edition, volume 336 of Frontiers in Artificial Intelligence and Applications, pages 993-1014. IOS Press, 2021.
  20. [Hecher et al., 2020] Markus Hecher, Patrick Thier, and Ste- fan Woltran. Taming high treewidth with abstraction, nested dynamic programming, and database technology. In Luca Pulina and Martina Seidl, editors, Theory and Ap- plications of Satisfiability Testing -SAT 2020 -23rd In- ternational Conference, Alghero, Italy, July 3-10, 2020, Proceedings, volume 12178 of Lecture Notes in Computer Science, pages 343-360. Springer, 2020.
  21. [Impagliazzo and Paturi, 2001] Russell Impagliazzo and Ra- mamohan Paturi. On the complexity of k-SAT. J. Comput. Syst. Sci., 62(2):367-375, 2001.
  22. [Iwama, 1989] Kazuo Iwama. CNF satisfiability test by counting and polynomial average time. SIAM J. Comput., 18(2):385-391, 1989.
  23. [Korhonen and Järvisalo, 2021] Tuukka Korhonen and Matti Järvisalo. Integrating tree decompositions into decision heuristics of propositional model counters (short paper).
  24. In Laurent D. Michel, editor, 27th International Confer- ence on Principles and Practice of Constraint Program- ming, CP 2021, Montpellier, France (Virtual Conference), October 25-29, 2021, volume 210 of LIPIcs, pages 8:1- 8:11. Schloss Dagstuhl -Leibniz-Zentrum für Informatik, 2021.
  25. [Kutzkov, 2007] Konstantin Kutzkov. New upper bound for the #3-sat problem. Inf. Process. Lett., 105(1):1-5, 2007.
  26. [Lozinskii, 1992] Eliezer L. Lozinskii. Counting proposi- tional models. Inf. Process. Lett., 41(6):327-332, 1992.
  27. [Narodytska et al., 2019] Nina Narodytska, Aditya A. Shrotri, Kuldeep S. Meel, Alexey Ignatiev, and João Marques-Silva. Assessing heuristic machine learning explanations with model counting. In Mikolás Janota and Inês Lynce, editors, Theory and Applications of Satisfiability Testing -SAT 2019 -22nd International Conference, SAT 2019, Lisbon, Portugal, July 9-12, 2019, Proceedings, volume 11628 of Lecture Notes in Computer Science, pages 267-278. Springer, 2019.
  28. [Roth, 1996] Dan Roth. On the hardness of approximate rea- soning. Artif. Intell., 82(1-2):273-302, 1996.
  29. [Samer and Szeider, 2010] Marko Samer and Stefan Szeider. Algorithms for propositional model counting. J. Discrete Algorithms, 8(1):50-64, 2010.
  30. [Sang et al., 2005] Tian Sang, Paul Beame, and Henry A. Kautz. Performing bayesian inference by weighted model counting. In Manuela M. Veloso and Subbarao Kambham- pati, editors, Proceedings, The Twentieth National Confer- ence on Artificial Intelligence and the Seventeenth Innova- tive Applications of Artificial Intelligence Conference, July 9-13, 2005, Pittsburgh, Pennsylvania, USA, pages 475- 482. AAAI Press / The MIT Press, 2005.
  31. [Valiant, 1979] Leslie G. Valiant. The complexity of com- puting the permanent. Theor. Comput. Sci., 8:189-201, 1979.
  32. [Wahlström, 2008] Magnus Wahlström. A tighter bound for counting max-weight solutions to 2sat instances. In Martin Grohe and Rolf Niedermeier, editors, Parameterized and Exact Computation, Third International Workshop, IW- PEC 2008, Victoria, Canada, May 14-16, 2008. Proceed- ings, volume 5018 of Lecture Notes in Computer Science, pages 202-213. Springer, 2008.
  33. [Xiao, 2022] Mingyu Xiao. An exact maxsat algorithm: Fur- ther observations and further improvements. In Luc De Raedt, editor, Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, IJCAI 2022, Vienna, Austria, 23-29 July 2022, pages 1887-1893. ij- cai.org, 2022. IJCAI
  34. [Zhang, 1996] Wenhui Zhang. Number of models and satisfiability of sets of clauses. Theor. Comput. Sci., 155(1):277-288, 1996.
  35. [Zhou et al., 2010] Junping Zhou, Minghao Yin, and Chun- guang Zhou. New worst-case upper bound for #2-sat and #3-sat with the number of clauses as the parameter. In Maria Fox and David Poole, editors, Proceedings of the Twenty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2010, Atlanta, Georgia, USA, July 11-15, 2010, pages 217-222. AAAI Press, 2010.

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

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