This paper, a classic in computational complexity theory from 1998, explores the "all-or-nothing" nature of optimization. While we often think of problems as existing on a spectrum of difficulty, the authors prove that for a broad class of Boolean constraints, finding the "best" solution is either surprisingly easy or as hard as it can possibly get.
TL;DR
The authors extend Schaefer’s famous Dichotomy Theorem for Boolean Satisfiability to optimization problems. They prove that finding the lexicographically smallest or largest satisfying assignment for any restricted class of Boolean formulae is either solvable in polynomial time ($FP$) or complete for the complexity class $OptP$, with no middle ground.
What Problem Does This Paper Address?
In 1978, Thomas Schaefer proved a landmark result: for any fixed set of Boolean constraints (like "at least two of these three variables must be true"), the problem of deciding if a formula is satisfiable is either in $P$ (easy) or $NP$-complete (hard). This is known as a dichotomy theorem.
However, in the real world, we rarely just want to know if a solution exists; we often want the best one. This paper asks: Does a similar dichotomy exist for optimization? Specifically, if we order all possible assignments like words in a dictionary (lexicographical order), how hard is it to find the very first (minimal) or very last (maximal) satisfying assignment?
The authors investigate this for "Generalized Propositional Formulae"—formulae built using a specific set of allowed logical relations $S$.
Methods
The researchers use the framework of S-formulae, where constraints are chosen from a fixed set of relations $S$. They categorize these sets based on algebraic properties identified by Schaefer:
- Horn / Anti-Horn: Constraints that can be written as specific types of implications.
- Bijunctive: Constraints involving at most two variables (like 2-SAT).
- Affine: Constraints that can be represented as systems of linear equations over GF(2).
To prove their results, they employ:
- A Greedy Algorithm: They provide a modified greedy strategy that solves the "easy" cases. By iteratively checking if a formula remains satisfiable while fixing variables to 0 (for minimization) or 1 (for maximization), they show that if the underlying decision problem is easy, the optimization problem is also easy.
- Metric Reductions: To prove hardness, they show that any problem in the class $OptP$ (the class of functions computable by taking the maximum/minimum over the paths of an NP machine) can be transformed into their specific optimization problems.
- Weak Many-One Reductions: A more refined type of reduction used to show that even with very limited computational overhead, the "hard" cases remain hard.
Datasets
As a theoretical computer science paper, this work does not use empirical datasets. Instead, it relies on formal mathematical proofs and the classification of all possible Boolean relations over finite domains.
Key Insights and Ideas
- The Greedy Link: The most intuitive "aha moment" is that for the classes where SAT is easy (Horn, bijunctive, etc.), the lexicographical optimum can be found greedily. If you can efficiently check satisfiability, you can just "test" the bits of your assignment one by one from left to right.
- Constants Change the Game: The paper highlights that allowing constants (0 and 1) in the formulae makes the dichotomy "cleaner." Without constants, there are "0-valid" relations (where the all-zero assignment is always a solution). In these cases, the decision problem is trivial, but finding a different or better solution can still be $OptP$-complete.
- The $P^{NP}$ Connection: Beyond just finding the assignment, the authors look at the complexity of a related decision problem: "Is the last bit of the optimal assignment a 1?" They prove this problem also follows a dichotomy, jumping from $P$ straight to $P^{NP}$-completeness.
Key Results
- Theorem 1 & 2 (The Dichotomy): For any set of relations $S$, the problem of finding the lexicographically minimal assignment is in $FP$ (polynomial time) if $S$ is Horn, anti-Horn, bijunctive, or affine. In all other cases, it is $OptP$-hard.
- Corollary 3: This result perfectly mirrors Schaefer’s result. If the decision version of the problem is $NP$-complete, the optimization version is $OptP$-complete.
- Complexity of "Oddness": Deciding if the largest variable in an optimal assignment is true is either in $P$ or complete for $P^{NP}$ (the class of problems solvable in polynomial time with an oracle for $NP$).
Limitations and Future Work
- Lexicographical Focus: The results are specific to lexicographical ordering. While this is a standard way to define "optimal," other objective functions (like minimizing the total number of true variables, i.e., the Hamming weight) require different techniques, though the authors note that others (like Creignou) have explored those areas.
- Constraint Satisfaction: The paper stays within the realm of Boolean (two-valued) logic. Extending these dichotomies to larger domains (Constraint Satisfaction Problems or CSPs) was a major area of research that followed this work, eventually leading to the proof of the general CSP Dichotomy Theorem decades later.
Reference: Reith, S., & Vollmer, H. (1998). The Complexity of Computing Optimal Assignments of Generalized Propositional Formulae. arXiv:cs/9809116.
Summary updated