Documentation

CslibFrontier.Computability.PCP.Approximation.ParitySearch

Polynomial-time MAX-SAT approximation by a three-wise independent sample space #

On formulas over variables numbered by natural numbers, encoded as for Cslib.Complexity.SAT, exhaustive search of the three-wise independent sample space (Cslib.Logic.PL.paritySearch) is polynomial-time (Cslib.Complexity.computableInPolyTime_paritySearch_encCNF). It is a second deterministic 7 / 8-approximation for MAX-E3SAT besides Johnson's algorithm (Cslib.Complexity.exists_polyTime_maxExactThreeSAT_approx), and its candidate assignments do not depend on the clauses: one polynomial-time map sends a list of n ≥ 1 variables to fewer than 4 n assignments, one of which satisfies at least 1 - 2 ^ -k of the clauses of every formula on these variables with at least k ≤ 3 distinct literals per clause (Cslib.Complexity.exists_polyTime_oblivious_maxSAT_assignments), and at least 7 / 8 of the clauses of every formula with three distinct variables per clause (Cslib.Complexity.exists_polyTime_oblivious_maxExactThreeSAT_assignments) [ABI86] Alon and Spencer, Section 16.2. The sample space is not four-wise independent, and the guarantee fails for k = 4 (see the checked examples).

Main results #

References #

Searching the three-wise independent sample space is polynomial-time on formulas encoded as for SAT, with its output, the variables it sets to true, as a list of binary naturals.

Polynomial-time oblivious assignments for MAX-SAT: one polynomial-time map sends a list of n ≥ 1 variables to fewer than 4 n assignments, each given by the variables it sets to true, such that for every formula on these variables whose clauses have at least k ≤ 3 distinct literals, one of the assignments falsifies at most 2 ^ -k of the clauses.

Polynomial-time oblivious assignments for MAX-E3SAT: one polynomial-time map sends a list of n ≥ 1 variables to fewer than 4 n assignments such that for every formula on these variables with three distinct variables per clause, one of the assignments satisfies at least 7 / 8 of the clauses.