Definition · MAX-3-SATA 3-CNF formula is a conjunction of m clauses, each a disjunction of three literals, where a literal is a variable or its negation. MAX-3-SAT asks for the assignment satisfying as many clauses as possible. The lab writes a clause as three signed integers, so 1 2 -3 is x₁ ∨ x₂ ∨ ¬x₃, and separates clauses with a semicolon.
Theorem · The expectation of a uniformly random assignmentLet F have m clauses, each on three distinct variables. Setting every variable to true or false independently with probability 1/2 satisfies 7m/8 clauses in expectation, exactly, whatever the clauses are and however much they overlap.
Fix a clause j. Its three literals involve three distinct variables, so the eight assignments to those three variables are equally likely under the random assignment. Exactly one of the eight makes all three literals false, namely the one setting each variable against its literal's sign. So P(Zⱼ = 1) = 7/8 and E[Zⱼ] = 7/8.
The number of satisfied clauses is Z = Σⱼ Zⱼ. By linearity of expectation, E[Z] = Σⱼ E[Zⱼ] = m·(7/8) = 7m/8, with no assumption about how the clauses share variables.
□
Theorem · The existence claimEvery 3-CNF formula with m clauses, each on three distinct variables, has an assignment satisfying at least ⌈7m/8⌉ clauses.
`
Z
`
t
a
k
e
s
f
i
n
i
t
e
l
y
m
a
n
y
v
a
l
u
e
s
w
i
t
h
t
o
t
a
l
p
r
o
b
a
b
i
l
i
t
y
`
1
`
.
I
f
e
v
e
r
y
v
a
l
u
e
w
e
r
e
s
t
r
i
c
t
l
y
l
e
s
s
t
h
a
n
`
E
[
Z
]
`
,
t
h
e
n
`
E
[
Z
]
`
w
o
u
l
d
b
e
a
w
e
i
g
h
t
e
d
a
v
e
r
a
g
e
o
f
n
u
m
b
e
r
s
a
l
l
s
t
r
i
c
t
l
y
b
e
l
o
w
i
t
,
w
h
i
c
h
i
s
i
m
p
o
s
s
i
b
l
e
.
S
o
s
o
m
e
a
s
s
i
g
n
m
e
n
t
h
a
s
`
Z
≥
E
[
Z
]
=
7
m
/
8
`
,
a
n
d
s
i
n
c
e
`
Z
`
i
s
a
n
i
n
t
e
g
e
r
i
t
s
a
t
i
s
f
i
e
s
a
t
l
e
a
s
t
`
⌈
7
m
/
8
⌉
`
c
l
a
u
s
e
s
.
□
That is the probabilistic method in its simplest form: to show an object with a property exists, put a distribution on the objects and show the property holds on average. Nothing in it is constructive. The proof holds for a formula with a thousand variables, and finding the assignment it promises is a different problem, which Intractability and Approximation takes up.
Example · Four clauses on three variablesx₁ ∨ x₂ ∨ ¬x₃, ¬x₁ ∨ x₂ ∨ x₃, x₁ ∨ ¬x₂ ∨ x₃, ¬x₁ ∨ ¬x₂ ∨ ¬x₃. Each clause has three distinct variables, so each contributes 7/8 and the mean is 4 × 7/8 = 7/2, which is what 7m/8 predicts. Enumerating all 8 assignments confirms it: four of them satisfy 3 clauses and four satisfy 4, and the mean of that is 7/2 exactly.
The clause table on the panel is the proof performed rather than quoted: each row computes that clause's own satisfying fraction over its own variables, and the last row adds the four shares and checks the total against the mean over all assignments. Two independent computations of the same number — one by linearity clause by clause, one by enumerating every assignment — and they agree.
What the expectation does not say
It does not say a random assignment satisfies 7/2 clauses; no assignment satisfies half a clause. It does not say most assignments are at or above the mean: here exactly four of the eight are below it, a probability of 1/2. And it does not say the best assignment is anywhere near the mean. Those are three separate facts and the lab prints all three because the expectation on its own invites all three mistakes.
The measured column makes the first point concrete. Over 120 seeded coin flips the mean came out 139/40 = 3.475 against an expectation of 3.5, with every individual run landing on 3 or 4. The sample mean is close and it is not the expectation, and it is the average of integers each of which is not 3.5.
The ratio is against the optimum, not against m
A randomised algorithm that outputs a uniformly random assignment is a 7/8-approximation for MAX-3-SAT, and the word 7/8 is a ratio to the optimum, not to m. On this formula the optimum is 4 and the mean is 7/2, so the ratio is 7/8 and the two coincide, because the formula is satisfiable. Change the formula and they part.
Take all eight clauses on three variables. The formula is unsatisfiable: every assignment falsifies exactly one clause, so every assignment satisfies exactly 7 and the optimum is 7, not 8. The mean is 7m/8 = 7 as well, so the ratio against the optimum is 1 while the ratio against m would be 7/8. The panel prints the optimum it found by enumeration beside the ratio, because a ratio printed without the thing it is a ratio to is not a ratio.
And take eight clauses on five variables: the mean is 7, the optimum is 8, and 9 of the 32 assignments do worse than the mean. That instance is the one to keep in mind, because it is the shape the guarantee is really about — a satisfiable formula where the average is genuinely below the best, and the gap is what an algorithm has to close.