DPMC: Weighted Model Counting by Dynamic Programming on Project-Join Trees

Jeffrey M. Dudek, Vu H. N. Phan, Moshe Y. Vardi
8/20/2020
cs.LOcs.AIcs.DS

Official code: vardigroup/DPMC (6 stars, C++, MIT, last commit 2026-05-23).

Abstract

We propose a unifying dynamic-programming framework to compute exact literal-weighted model counts of formulas in conjunctive normal form. At the center of our framework are project-join trees, which specify efficient project-join orders to apply additive projections (variable eliminations) and joins (clause multiplications).

Show full abstract

In this framework, model counting is performed in two phases. First, the planning phase constructs a project-join tree from a formula. Second, the execution phase computes the model count of the formula, employing dynamic programming as guided by the project-join tree. We empirically evaluate various methods for the planning phase and compare constraint-satisfaction heuristics with tree-decomposition tools. We also investigate the performance of different data structures for the execution phase and compare algebraic decision diagrams with tensors. We show that our dynamic-programming model-counting framework DPMC is competitive with the state-of-the-art exact weighted model counters cachet, c2d, d4, and miniC2D.

View on arXivView PDF

Code Implementations(1)

vardigroup/DPMCOfficial100%
MIT

DPMC/ProCount is a dynamic-programming framework for exact weighted (projected) model counting

63C++, PythonJul 17, 20206 months agoMIT

Similar Papers

Cite this paper

@article{dudek2020dpmc,
  title  = {DPMC: Weighted Model Counting by Dynamic Programming on Project-Join Trees},
  author = {Jeffrey M. Dudek and Vu H. N. Phan and Moshe Y. Vardi},
  year   = {2020},
  eprint = {2008.08748},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.08748}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2008.08748.svg)](https://codeofpaper.com/paper/2008.08748)

Discussion