Cclasses Reductions
Cclasses Reductions
SAT to 3-CNF-SAT
3SAT’s and Cliques
CLIQUE to Vertex Cover
This problem has the historical honor of being the first problem ever
shown to be NP-complete. In other words,
Theorem
SAT ∈ P ⇐⇒ P = NP
The proof is beyond the scope of this course and for now, we shall
assume this claim to be true.
Not all formulas can be satisfied. For example
For example, we convert the clause ϕ′1 = (y1 ↔ (y2 ∨ ¬x2 )) into
CNF as follows. The truth table for ϕ′1 is shown.
In some textbooks, the plus sign denotes Logical OR ∨ and the dot
sign sign denotes Logical AND ∧
NP-Completeness and Reductions
SAT to 3-CNF-SAT
3SAT’s and Cliques
CLIQUE to Vertex Cover
Nodes cannot be from the same triple because we selected only one
node per triple.
Nodes cannot have contradictory labels because the associated
literals were both true in the satisfying assignment.
=⇒ G contains a k-clique.
NP-Completeness and Reductions
SAT to 3-CNF-SAT
3SAT’s and Cliques
CLIQUE to Vertex Cover
G consists of same vertices in G and all and only those edges which
are absent from G .
Then, (u, v ) ∈
/ E , which implies that at least one of u or v does not
belong to V , since every pair of vertices in V is connected by an
edge of E .