Documentation

CslibFrontier.Computability.PCP.Approximation.Johnson

Polynomial-time approximation of MAX-SAT by Johnson's algorithm #

Johnson's algorithm (Cslib.Logic.PL.johnson) on formulas over variables numbered by natural numbers, encoded as for Cslib.Complexity.SAT, is polynomial-time (Cslib.Complexity.computableInPolyTime_johnson_encCNF); its output is the list of variables it sets to true. Hence one polynomial-time algorithm satisfies, on every formula whose clauses have at least k distinct literals, at least the proportion 1 - 2 ^ -k of the clauses, and at least 1 - 2 ^ -k times the largest proportion an assignment satisfies, 1 - unsatVal (Cslib.Complexity.exists_polyTime_maxSAT_approx) [Joh74] Williamson and Shmoys, Sections 5.1–5.2. For MAX-E3SAT with three distinct variables per clause this is a 7 / 8-approximation (Cslib.Complexity.exists_polyTime_maxExactThreeSAT_approx), the constructive counterpart of Cslib.Logic.PL.CNF.IsExactThreeDistinct.unsatVal_le_one_eighth. Håstad showed that 7 / 8 is optimal unless P = NP [Has01]; that hardness result is not formalized here.

These are statements about one explicit algorithm; the library has no general interface for approximation ratios of optimization problems yet.

Main results #

References #

Johnson's algorithm is polynomial-time on formulas encoded as for SAT, with its output, the variables it sets to true, as a list of binary naturals.

A polynomial-time approximation algorithm for MAX-SAT: one polynomial-time algorithm, whose output lists the variables to set to true, satisfies on every formula whose clauses have at least k distinct literals at least the proportion 1 - 2 ^ -k of the clauses, and at least 1 - 2 ^ -k times the largest proportion an assignment satisfies.

A polynomial-time 7 / 8-approximation algorithm for MAX-E3SAT: on every formula with three distinct variables per clause, one polynomial-time algorithm satisfies at least 7 / 8 of the clauses, and at least 7 / 8 times the largest proportion an assignment satisfies.