English

Solving MaxSAT and #SAT on structured CNF formulas

Data Structures and Algorithms 2014-02-27 v1 Artificial Intelligence Computational Complexity

Abstract

In this paper we propose a structural parameter of CNF formulas and use it to identify instances of weighted MaxSAT and #SAT that can be solved in polynomial time. Given a CNF formula we say that a set of clauses is precisely satisfiable if there is some complete assignment satisfying these clauses only. Let the ps-value of the formula be the number of precisely satisfiable sets of clauses. Applying the notion of branch decompositions to CNF formulas and using ps-value as cut function, we define the ps-width of a formula. For a formula given with a decomposition of polynomial ps-width we show dynamic programming algorithms solving weighted MaxSAT and #SAT in polynomial time. Combining with results of 'Belmonte and Vatshelle, Graph classes with structured neighborhoods and algorithmic applications, Theor. Comput. Sci. 511: 54-65 (2013)' we get polynomial-time algorithms solving weighted MaxSAT and #SAT for some classes of structured CNF formulas. For example, we get O(m2(m+n)s)O(m^2(m + n)s) algorithms for formulas FF of mm clauses and nn variables and size ss, if FF has a linear ordering of the variables and clauses such that for any variable xx occurring in clause CC, if xx appears before CC then any variable between them also occurs in CC, and if CC appears before xx then xx occurs also in any clause between them. Note that the class of incidence graphs of such formulas do not have bounded clique-width.

Keywords

Cite

@article{arxiv.1402.6485,
  title  = {Solving MaxSAT and #SAT on structured CNF formulas},
  author = {Sigve Hortemo Sæther and Jan Arne Telle and Martin Vatshelle},
  journal= {arXiv preprint arXiv:1402.6485},
  year   = {2014}
}
R2 v1 2026-06-22T03:16:08.130Z