05_examples
05_examples
LIPADE
Algorithmic Complexity
Examples of Problems and their Proof of
Complexity
2023
Outline
1
3-SAT
Independent Set
Clique
Conclusion
Definition
I k -CNF: a CNF formula such that each clause contains at most k
literals
I SAT= {φ | φ is a CNF formula and φ is satisfiable}
Definition
I k -CNF: a CNF formula such that each clause contains at most k
literals
I SAT= {φ | φ is a CNF formula and φ is satisfiable}
I 3-SAT= {φ | φ is a 3-CNF formula and φ is satisfiable}
Definition
I k -CNF: a CNF formula such that each clause contains at most k
literals
I SAT= {φ | φ is a CNF formula and φ is satisfiable}
I 3-SAT= {φ | φ is a 3-CNF formula and φ is satisfiable}
3-SAT
Independent Set
Clique
Conclusion
Definition
Given a non directed graph G = hN, Ei, an independent set is a set of
nodes I ⊆ N such that ∀x, y ∈ I, {x, y } 6∈ E
x1 x2
x¯2 x3 x¯3 x4
x1 x2
x¯2 x3 x¯3 x4
x1 x2
x¯2 x3 x¯3 x4
x1 x2
x¯2 x3 x¯3 x4
x1 x2
x¯2 x3 x¯3 x4
x1 x2
x¯2 x3 x¯3 x4
x1 x2
x¯2 x3 x¯3 x4
I φ ∈ 3-SAT⇒ (Gφ , k ) ∈ IS
3-SAT
Independent Set
Clique
Conclusion
Definition
Given a non directed graph G = hN, Ei, a clique is a set of nodes
C ⊆ N such that ∀x, y ∈ C, {x, y } ∈ E
Note : this definition of a clique is not exactly the same as the one
given in the first course of the semester, but it is equivalent (and more
convenient for the rest of this lecture)
3-SAT
Independent Set
Clique
Conclusion