A Scalable Approximate Model Counter
Authors:
Preprint
Abstract
Propositional model counting} (#SAT), i.e., counting the number of satisfying assignments of a propositional formula, is a problem of significant theoretical and practical interest. Due to the inherent complexity of the problem, approximate model counting, which counts the number of satisfying assignments to within given tolerance and confidence level, was proposed as a practical alternative to exact model counting. Yet, approximate model counting has been studied essentially only theoretically. The only reported implementation of approximate model counting, due to Karp and Luby, worked only for DNF formulas. A few existing tools for CNF formulas are bounding model counters; they can handle realistic problem sizes, but fall short of providing counts within given tolerance and confidence, and, thus, are not approximate model counters. We present here a novel algorithm, as well as a reference implementation, that is the first scalable approximate model counter for CNF formulas. The algorithm works by issuing a polynomial number of calls to a SAT solver. Our tool, ApproxMC, scales to formulas with tens of thousands of variables. Careful experimental comparisons show that ApproxMC reports, with high confidence, bounds that are close to the exact count, and also succeeds in reporting bounds with small tolerance and high confidence in cases that are too large for computing exact model counts.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Stochastic Enumeration Method for Counting NP-Hard ProblemsMethodology and Computing in Applied Probability, 2011
- SampleSearch: Importance sampling in presence of determinismArtificial Intelligence, 2011
- Simplifying Boolean Constraint Solving for Random Simulation-Vector GenerationIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2004
- Uniform Generation of NP-Witnesses Using an NP-OracleInformation and Computation, 2000
- On the hardness of approximate reasoningArtificial Intelligence, 1996
- Chernoff–Hoeffding Bounds for Applications with Limited IndependenceSIAM Journal on Discrete Mathematics, 1995
- Monte-Carlo approximation algorithms for enumeration problemsJournal of Algorithms, 1989
- Random generation of combinatorial structures from a uniform distributionTheoretical Computer Science, 1986
- On counting problems and the polynomial-time hierarchyTheoretical Computer Science, 1980
- The Complexity of Enumeration and Reliability ProblemsSIAM Journal on Computing, 1979