English

Constraint Optimization over Semirings

Logic in Computer Science 2023-02-28 v1 Computational Complexity Databases

Abstract

Interpretations of logical formulas over semirings have applications in various areas of computer science including logic, AI, databases, and security. Such interpretations provide richer information beyond the truth or falsity of a statement. Examples of such semirings include Viterbi semiring, min-max or access control semiring, tropical semiring, and fuzzy semiring. The present work investigates the complexity of constraint optimization problems over semirings. The generic optimization problem we study is the following: Given a propositional formula φ\varphi over nn variable and a semiring (K,+,,0,1)(K,+,\cdot,0,1), find the maximum value over all possible interpretations of φ\varphi over KK. This can be seen as a generalization of the well-known satisfiability problem. A related problem is to find an interpretation that achieves the maximum value. In this work, we first focus on these optimization problems over the Viterbi semiring, which we call optConfVal and optConf. We show that for general propositional formulas in negation normal form, optConfVal and optConf are in FPNP{\mathrm{FP}}^{\mathrm{NP}}. We investigate optConf when the input formula φ\varphi is represented as a CNF. For CNF formulae, we first derive an upper bound on optConfVal as a function of the number of maximum satisfiable clauses. In particular, we show that if rr is the maximum number of satisfiable clauses in a CNF formula with mm clauses, then its optConfVal is at most 1/4mr1/4^{m-r}. Building on this we establish that optConfVal for CNF formulae is hard for the complexity class FPNP[log]{\mathrm{FP}}^{\mathrm{NP}[\log]}. We also design polynomial-time approximation algorithms and establish an inapproximability for optConfVal. We establish similar complexity results for these optimization problems over other semirings including tropical, fuzzy, and access control semirings.

Keywords

Cite

@article{arxiv.2302.12937,
  title  = {Constraint Optimization over Semirings},
  author = {A. Pavan and Kuldeep S. Meel and N. V. Vinodchandran and Arnab Bhattacharyya},
  journal= {arXiv preprint arXiv:2302.12937},
  year   = {2023}
}

Comments

Appeared in AAAI 23

R2 v1 2026-06-28T08:49:14.966Z