English

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

Data Structures and Algorithms 2025-07-22 v1

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. proposed an O(1.1892m)\mathcal{O}^*(1.1892^m)-time algorithm for #2-SAT and an efficient approach for #3-SAT, where mm 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.1082m)\mathcal{O}^*(1.1082^m) and O(1.4423m)\mathcal{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.

Keywords

Cite

@article{arxiv.2507.14504,
  title  = {New Algorithms for #2-SAT and #3-SAT},
  author = {Junqiang Peng and Zimo Sheng and Mingyu Xiao},
  journal= {arXiv preprint arXiv:2507.14504},
  year   = {2025}
}

Comments

Accepted by IJCAI 2025

R2 v1 2026-07-01T04:09:03.133Z