Type: Article
Publication Date: 2009-01-01
Citations: 103
DOI: https://doi.org/10.1137/070690201
This paper gives a dichotomy theorem for the complexity of computing the partition function of an instance of a weighted Boolean constraint satisfaction problem. The problem is parameterized by a finite set $\mathcal{F}$ of nonnegative functions that may be used to assign weights to the configurations (feasible solutions) of a problem instance. Classical constraint satisfaction problems correspond to the special case of 0,1-valued functions. We show that computing the partition function, i.e., the sum of the weights of all configurations, is $\text{{\sf FP}}^{\text{{\sf#P}}}$-complete unless either (1) every function in $\mathcal{F}$ is of "product type," or (2) every function in $\mathcal{F}$ is "pure affine." In the remaining cases, computing the partition function is in P.