CSE 421
P vs NP / NP Completeness
Shayan Oveis Gharan
1
CSE 421 P vs NP / NP Completeness Shayan Oveis Gharan 1 Decision - - PowerPoint PPT Presentation
CSE 421 P vs NP / NP Completeness Shayan Oveis Gharan 1 Decision Problems A decision problem is a computational problem where the answer is just yes/no Here, we study computational complexity of decision Problems. Why? much simpler to
Shayan Oveis Gharan
1
2
3
4
The independent set S The 3-coloring The vertex cover S The T/F assignment
5
6
7
Instance x certificate t
MIN-CUT. Given a flow network, and a number k, does there
8
By definition, there exists a poly-time algorithm A(x) that solves X. Certificate: t = empty string, certifier C(x, t) = A(x). βͺ
By definition, there exists a poly-time certifier C(x, t) for X. To solve input x, run C(x, t) on all strings t with |t| β€ p(|x|) Return yes, if C(x, t) returns yes for any of these.
9
10
EXP NP P If P β NP If P = NP EXP P = NP
11
12
13
π¦" β¨ π¦' β¨ π¦4 β§ π¦$ β¨ π¦* β¨ π¦3 β§ π¦$ β¨ π¦" β¨ π¦3
14
π¦" π¦' π¦* π¦$ π¦' π¦* π¦$ π¦" π¦'
Polynomial-Time Reduction
F satisfiable => An independent of size m Given a satisfying assignment, Choose one node from each clause where the literal is satisfied
Satisfying assignment: π¦" = π, π¦$ = πΊ, π¦' = π, π¦* = πΊ
15
π¦" π¦' π¦* π¦$ π¦' π¦* π¦$ π¦" π¦'
An independent set of size m => A satisfying assignment Given an independent set S of size m. S has exactly one vertex per clause (because of blue edges) S does not have π¦<, = π¦< (because of red edges) So, S gives a satisfying assignment
Satisfying assignment: π¦" = πΊ, π¦$ =? , π¦' = π, π¦* = π π¦" β¨ π¦' β¨ π¦* β§ π¦$ β¨ π¦* β¨ π¦' β§ π¦$ β¨ π¦" β¨ π¦'
16
π¦" π¦' π¦* π¦$ π¦' π¦* π¦$ π¦" π¦'
17