Professional Documents
Culture Documents
Notation: X ≤P Y.
Example:
b a c
e f d
g h
Example:
b a c
e f d
g h
- S independent ⟹ u ∉ S or v ∉ S ⟹ u ∈ V - S or v ∈ V - S.
The reduction:
- G contains 3 vertices for each clause, one for each literal.
X1 X3 X̄1 X4 X2 X̄4
COMP3251 12 Zhiyi Huang
fi
3-SAT ≤P Independent Set
(⟹): Let S be an independent set of size k.
- S must contain exactly one vertex in each triangle.
X1 X3 X̄1 X4 X2 X̄4
X1 X3 X̄1 X4 X2 X̄4
Example:
Recall that
We have
Examples:
P = NP?
1) X is in NP, and
Implications:
- If X can be solved in polynomial time, then all NP problem
can be solved in polynomial time (i.e., NP = P).
Answer: Yes.