Maximum 2-satisfiability 2026-10-06
Maximum 2-satisfiability asks for an assignment satisfying as many clause occurrences as possible when every nonempty clause has at most two literals. Occurrences are counted even when a clause is repeated. Its decision problem is NP-complete by the seven-clause gadget for MAX-2SAT, while the method of conditional probabilities gives a polynomial-time half approximation.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 37 6 a Solution Created 2026-10-03 Updated 2026-10-06
Let be the number of true values among . Count the ten clause occurrences for the two choices of . With , the three positive singletons contribute , the three negated-pair clauses contribute , and the last three clauses all hold. With , the four singleton clauses contribute , the negated pairs again contribute , and the last three contribute . ThereforeThe original three-literal clause is satisfied exactly when , and then a value of satisfies exactly seven gadget clauses. If , no choice reaches seven. Thus the required equivalence holds, and seven is also an upper bound for every assignment to the gadget. This is the seven-clause gadget for MAX-2SAT.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 37 6 b Solution Created 2026-10-03 Updated 2026-10-06
The decision problem is in NP: an assignment is a certificate, and counting its satisfied clause occurrences is polynomial in the input size.
Reduce 3-SAT to it. For each of the original clauses, use the seven-clause gadget for MAX-2SAT with its three literals in place of and with a fresh auxiliary variable. Keep all ten clause occurrences per gadget, including any repeated occurrences across gadgets. Set the target to .
If the original formula is satisfiable, choose each auxiliary value as in part (a), giving seven satisfied clauses per gadget. Conversely, no gadget can exceed seven. If an assignment satisfies at least clauses in total, every gadget must reach seven, so every original clause is satisfied by the original-variable assignment. The construction has clauses and auxiliary variables, so is polynomial. Consequently the decision version of MAX-2SAT is NP-complete.