CS21 Decidability and Tractability

Slides:



Advertisements
Similar presentations
Max Cut Problem Daniel Natapov.
Advertisements

Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
March 2, 2015CS21 Lecture 231 CS21 Decidability and Tractability Lecture 23 March 2, 2015.
CS21 Decidability and Tractability
February 23, 2015CS21 Lecture 201 CS21 Decidability and Tractability Lecture 20 February 23, 2015.
CS151 Complexity Theory Lecture 12 May 6, CS151 Lecture 122 Outline The Polynomial-Time Hierarachy (PH) Complete problems for classes in PH, PSPACE.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
Last class Decision/Optimization 3-SAT  Independent-Set Independent-Set  3-SAT P, NP Cook’s Theorem NP-hard, NP-complete 3-SAT  Clique, Subset-Sum,
NP-Completeness (2) NP-Completeness Graphs 4/17/2017 6:25 AM x x x x x
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 24 Instructor: Paul Beame.
CS151 Complexity Theory Lecture 13 May 11, CS151 Lecture 132 Outline Natural complete problems for PH and PSPACE proof systems interactive proofs.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture NP-Completeness Jan Maluszynski, IDA, 2007
February 25, 2015CS21 Lecture 211 CS21 Decidability and Tractability Lecture 21 February 25, 2015.
February 20, 2015CS21 Lecture 191 CS21 Decidability and Tractability Lecture 19 February 20, 2015.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
Lecture 22 More NPC problems
May 9, New Topic The complexity of counting.
CS151 Complexity Theory Lecture 12 May 6, QSAT is PSPACE-complete Theorem: QSAT is PSPACE-complete. Proof: 8 x 1 9 x 2 8 x 3 … Qx n φ(x 1, x 2,
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
28.
CSE 6311 – Spring 2009 ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS Lecture Notes – Feb. 3, 2009 Instructor: Dr. Gautam Das notes by Walter Wilson.
NPC.
Complexity ©D.Moshkovits 1 2-Satisfiability NOTE: These slides were created by Muli Safra, from OPICS/sat/)
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
CSCI 2670 Introduction to Theory of Computing December 7, 2005.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
Prof. Busch - LSU1 Busch Complexity Lectures: More NP-complete Problems.
 2005 SDU Lecture15 P,NP,NP-complete.  2005 SDU 2 The PATH problem PATH = { | G is a directed graph that has a directed path from s to t} s t
TU/e Algorithms (2IL15) – Lecture 10 1 NP-Completeness, II.
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
L is in NP means: There is a language L’ in P and a polynomial p so that L1 ≤ L2 means: For some polynomial time computable map r :  x: x  L1 iff.
Richard Anderson Lecture 26 NP-Completeness
Lecture 2-2 NP Class.
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness Proofs
Richard Anderson Lecture 26 NP-Completeness
NP-Completeness (36.4-5) P: yes and no in pt NP: yes in pt NPH  NPC
NP-Completeness Yin Tat Lee
CS21 Decidability and Tractability
Intro to Theory of Computation
CS154, Lecture 16: More NP-Complete Problems; PCPs
CS21 Decidability and Tractability
ICS 353: Design and Analysis of Algorithms
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
More NP-complete Problems
Richard Anderson Lecture 25 NP-Completeness
CS21 Decidability and Tractability
CS 3343: Analysis of Algorithms
CS21 Decidability and Tractability
Netzer & Miller 1990: On the Complexity of Event Ordering for Shared-Memory Parallel Program Executions.
NP-Completeness Yin Tat Lee
Umans Complexity Theory Lectures
CS21 Decidability and Tractability
CSE 6408 Advanced Algorithms.
CS21 Decidability and Tractability
NP-Completeness Yin Tat Lee
CS154, Lecture 16: More NP-Complete Problems; PCPs
CS21 Decidability and Tractability
Umans Complexity Theory Lectures
CSE 589 Applied Algorithms Spring 1999
Lecture 24 Classical NP-hard Problems
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Lecture 23 NP-Hard Problems
Presentation transcript:

CS21 Decidability and Tractability Lecture 23 March 6, 2019 March 6, 2019 CS21 Lecture 23

Outline NP-complete problem: max cut (finishing up) The complexity class coNP The complexity class coNP ∩ NP The complexity class PSPACE a PSPACE-complete problem March 6, 2019 CS21 Lecture 23

MAX CUT Theorem: the following language is NP-complete: Proof: MAX CUT = {(G = (V, E), k) : there is a cut S ⊆ V with at least k edges crossing it} Proof: Part 1: MAX CUT ∈ NP. Proof? Part 2: MAX CUT is NP-hard. reduce from? March 6, 2019 CS21 Lecture 23

MAX CUT is NP-complete We are reducing from the language: NAE3SAT = {φ : φ is a 3-CNF formula for which there exists a truth assignment in which every clause has at least 1 true literal and at least 1 false literal} to the language: MAX CUT = {(G = (V, E), k) : there is a cut S ⊆ V with at least k edges crossing it} March 6, 2019 CS21 Lecture 23

(x1 ∨ x2 ∨¬x3)∧(¬x1 ∨ x4 ∨ x5)∧…∧(¬x2 ∨ x3 ∨ x3 ) MAX CUT is NP-complete The reduction: given instance of NAE3SAT (n nodes, m clauses): (x1 ∨ x2 ∨¬x3)∧(¬x1 ∨ x4 ∨ x5)∧…∧(¬x2 ∨ x3 ∨ x3 ) produce graph G = (V, E) with node for each literal ¬x3 x4 ¬x4 triangle for each 3-clause parallel edges for each 2-clause x2 ¬x1 ¬x5 x1 ¬x2 x5 x3 March 6, 2019 CS21 Lecture 23

(repeat variable in 2-clause to make 3-clause for this calculation) MAX CUT is NP-complete ¬x3 x4 ¬x4 triangle for each 3-clause parallel edges for each 2-clause x2 ¬x1 ¬x5 x1 ¬x2 x5 x3 if cut selects TRUE literals, each clause contributes 2 if NAE, and < 2 otherwise need to penalize cuts that correspond to inconsistent truth assignments add ni parallel edges from xi to ¬xi (ni = # occurrences) (repeat variable in 2-clause to make 3-clause for this calculation) March 6, 2019 CS21 Lecture 23

MAX CUT is NP-complete YES maps to YES triangle for each 3-clause parallel edges for each 2-clause ni parallel edges from xi to ¬xi set k = 5m ¬x3 x4 ¬x4 x2 ¬x1 ¬x5 x1 ¬x2 x5 x3 YES maps to YES take cut to be TRUE literals in a NAE truth assignment contribution from clause gadgets: 2m contribution from (xi, ¬xi) parallel edges: 3m March 6, 2019 CS21 Lecture 23

MAX CUT is NP-complete NO maps to NO triangle for each 3-clause parallel edges for each 2-clause ni parallel edges from xi to ¬xi set k = 5m ¬x4 x2 ¬x1 ¬x5 x1 ¬x2 x3 x5 NO maps to NO Claim: if cut has xi, ¬xi on same side, then can move one to opposite side without decreasing # edges crossing cut contribution from (xi, ¬xi) parallel edges: 3m contribution from clause gadgets must be 2m conclude: there is a NAE assignment March 6, 2019 CS21 Lecture 23

MAX CUT is NP-complete Claim: if cut has xi, ¬xi on same side, then can move one to opposite side without decreasing # edges crossing cut Proof: xi a + ni a edges ... xi ¬xi ni edges a+b ≤ 2ni xi ... b + ni ¬xi ... b edges a + ni ≥ a + b or b + ni ≥ a + b ¬xi March 6, 2019 CS21 Lecture 23

coNP Is NP closed under complement? Can we transform this machine: x ∉ L Can we transform this machine: x ∈ L x ∈ L x ∉ L qaccept qreject into a machine with this behavior? qaccept qreject March 6, 2019 CS21 Lecture 23

coNP language L is in coNP iff its complement (co-L) is in NP it is believed that NP ≠ coNP note: P = NP implies NP = coNP proving NP ≠ coNP would prove P ≠ NP another major open problem… March 6, 2019 CS21 Lecture 23

UNSAT = {φ : φ is an unsatisfiable 3-CNF formula} coNP canonical coNP-complete language: UNSAT = {φ : φ is an unsatisfiable 3-CNF formula} proof? March 6, 2019 CS21 Lecture 23

coNP Disjunctive Normal Form = OR of ANDs another example 3-DNF-TAUTOLOGY = {φ : φ is a 3-DNF formula and for all x, φ(x) =1} proof? another example: EQUIV-CIRCUIT = {(C1, C2) : C1 and C2 are Boolean circuits and for all x, C1(x) = C2(x)} March 6, 2019 CS21 Lecture 23

Quantifier characterization of coNP   March 6, 2019 CS21 Lecture 23

Proof interpretation of coNP   “proof” “short” proof “proof verifier” March 6, 2019 CS21 Lecture 23

coNP what complexity class do the following languages belong in? COMPOSITES = {x : integer x is a composite} PRIMES = {x : integer x is a prime number} GRAPH-NONISOMORPHISM = {(G, H) : G and H are graphs that are not isomorphic} EXPANSION = {(G = (V,E), 𝛼 > 0): every subset S ⊆ V of size at most |V|/2 has at least 𝛼|S| neighbors} March 6, 2019 CS21 Lecture 23

coNP Picture of the way we believe things are: coNP EXP decidable languages P NP NP ∩ coNP March 6, 2019 CS21 Lecture 23

NP ∩ coNP Might guess NP ∩ coNP = P by analogy with RE (since RE ∩ coRE = DECIDABLE) Not believed to be true. A problem in NP ∩ coNP not believed to be in P: L = {(x, k): integer x has a prime factor p < k} (decision version of factoring) March 6, 2019 CS21 Lecture 23

NP ∩ coNP   March 6, 2019 CS21 Lecture 23

PRIMES in NP   March 6, 2019 CS21 Lecture 23

Summary Picture of the way we believe things are: (decision version of ) FACTORING EXP coNP decidable languages P NP NP ∩ coNP March 6, 2019 CS21 Lecture 23