Complexity Classes V. More PCPs. Eric Rachlin

Similar documents
Complexity Classes IV

Notes for Lecture 2. Statement of the PCP Theorem and Constraint Satisfaction

Lecture 18: PCP Theorem and Hardness of Approximation I

Keywords. Approximation Complexity Theory: historical remarks. What s PCP?

Non-Approximability Results (2 nd part) 1/19

Limits to Approximability: When Algorithms Won't Help You. Note: Contents of today s lecture won t be on the exam

Essential facts about NP-completeness:

PCPs and Inapproximability Gap-producing and Gap-Preserving Reductions. My T. Thai

Polynomial time reduction and NP-completeness. Exploring some time complexity limits of polynomial time algorithmic solutions

Lecture 2 (Notes) 1. The book Computational Complexity: A Modern Approach by Sanjeev Arora and Boaz Barak;

Introduction to Advanced Results

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

CS154, Lecture 15: Cook-Levin Theorem SAT, 3SAT

Complexity, P and NP

Introduction to Complexity Theory

Lecture 3: Nondeterminism, NP, and NP-completeness

SAT, Coloring, Hamiltonian Cycle, TSP

NP Completeness. Richard Karp, 1972.

NP Completeness. CS 374: Algorithms & Models of Computation, Spring Lecture 23. November 19, 2015

Lecture 19: Interactive Proofs and the PCP Theorem

Lecture 3 (Notes) 1. The book Computational Complexity: A Modern Approach by Sanjeev Arora and Boaz Barak;

CS21 Decidability and Tractability

6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch

Complexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München

CS21 Decidability and Tractability

Lecture 7: Polynomial time hierarchy

CSE 135: Introduction to Theory of Computation NP-completeness

NP-Complete Reductions 2

CISC 4090 Theory of Computation

Show that the following problems are NP-complete

CS154, Lecture 13: P vs NP

Advanced Algorithms (XIII) Yijia Chen Fudan University

INAPPROX APPROX PTAS. FPTAS Knapsack P

CS256 Applied Theory of Computation

HW11. Due: December 6, 2018

Announcements. Friday Four Square! Problem Set 8 due right now. Problem Set 9 out, due next Friday at 2:15PM. Did you lose a phone in my office?

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP

P = k T IME(n k ) Now, do all decidable languages belong to P? Let s consider a couple of languages:

CS154, Lecture 13: P vs NP

Dinur s Proof of the PCP Theorem

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

Finish K-Complexity, Start Time Complexity

The Cook-Levin Theorem

NP-Complete Reductions 1

Lecture Notes Each circuit agrees with M on inputs of length equal to its index, i.e. n, x {0, 1} n, C n (x) = M(x).

Chapter 7: Time Complexity

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, Notes 22 for CS 170

Hardness of Approximation

Today. Few Comments. PCP Theorem, Simple proof due to Irit Dinur [ECCC, TR05-046]! Based on some ideas promoted in [Dinur- Reingold 04].

Theory of Computation Time Complexity

PCP Theorem and Hardness of Approximation

Topics in Complexity Theory

Lecture 17: Cook-Levin Theorem, NP-Complete Problems

On the Computational Hardness of Graph Coloring

Complete problems for classes in PH, The Polynomial-Time Hierarchy (PH) oracle is like a subroutine, or function in

NP-Complete Problems. More reductions

PROBABILISTIC CHECKING OF PROOFS AND HARDNESS OF APPROXIMATION

Polynomial-time reductions. We have seen several reductions:

Lecture 4 : Quest for Structure in Counting Problems

1 Agenda. 2 History. 3 Probabilistically Checkable Proofs (PCPs). Lecture Notes Definitions. PCPs. Approximation Algorithms.

1 Probabilistically checkable proofs

CSC 5170: Theory of Computational Complexity Lecture 9 The Chinese University of Hong Kong 15 March 2010

Introduction. Pvs.NPExample

CS Lecture 28 P, NP, and NP-Completeness. Fall 2008

Technische Universität München Summer term 2010 Theoretische Informatik August 2, 2010 Dr. J. Kreiker / Dr. M. Luttenberger, J. Kretinsky SOLUTION

CSCI 1590 Intro to Computational Complexity

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65

Lecture 16 November 6th, 2012 (Prasad Raghavendra)

Lecture 15: A Brief Look at PCP

CS20a: NP completeness. NP-complete definition. Related properties. Cook's Theorem

NP Complete Problems. COMP 215 Lecture 20

CS151 Complexity Theory. Lecture 15 May 22, 2017

DRAFT. PCP and Hardness of Approximation. Chapter 19

CSE 3500 Algorithms and Complexity Fall 2016 Lecture 25: November 29, 2016

CS154, Lecture 18: 1

1 Computational problems

On the efficient approximability of constraint satisfaction problems

Theory of Computation Chapter 9

CSCI3390-Lecture 16: NP-completeness

NP-Completeness and Boolean Satisfiability

Easy Problems vs. Hard Problems. CSE 421 Introduction to Algorithms Winter Is P a good definition of efficient? The class P

Complexity (Pre Lecture)

Lecture 25: Cook s Theorem (1997) Steven Skiena. skiena

NP and NP Completeness

Design and Analysis of Algorithms

Expander Graphs and Their Applications (X) Yijia Chen Shanghai Jiaotong University

Lecture 6: Oracle TMs, Diagonalization Limits, Space Complexity

Lecture 16: Time Complexity and P vs NP

1. Introduction Recap

Time to learn about NP-completeness!

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

NP-completeness. Chapter 34. Sergey Bereg

Intro to Theory of Computation

SAT, NP, NP-Completeness

Interactive Proofs. Merlin-Arthur games (MA) [Babai] Decision problem: D;

Notes for Lecture 3... x 4

Great Theoretical Ideas in Computer Science

Transcription:

Complexity Classes V More PCPs Eric Rachlin 1

Recall from last time Nondeterminism is equivalent to having access to a certificate. If a valid certificate exists, the machine accepts. We see that problems in NP, which appear hard to solve, are easy to check. For PCPs, machines also have access to a certificate (called a proof). The proof is selectively queried using random bits. A valid proof causes the machine to accept, an invalid proof will be rejected with high probability. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 2

PCP Verifiers Input string, x querier Proof string, y Output Finite Control Unit, M Random Bits, r Work tape Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 3

PCP Complexity Classes PCP c, s [q(n), r(n)] is the class of languages that can be recognized with by some Turing machine (which we call a verifier ) with soundness s (or less) and completeness c (or more) using O(r(n)) random bits and O(q(n)) queries to a proof. Completeness c means that there exists a proof such that strings in L are accepted with probability c. Soundness s means that for all proofs the TM accepts strings not in L with probability s. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 4

The PCP Theorem PCP Theorem (Arora, Lund, Motwani, Sudan, and Szegedy): NP = PCP 1, 1/2 [1, log(n)]. Recently, a simpler proof was given by Dinur. An NP-complete problem is reduced to a problem in PCP 1, 1/2 [1, log(n)] The theorem gives us our first hard to approximate problem. Other hardness results can then be proven though gap preserving reductions. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 5

Why PCP 1, 1/2 [1, log(n)] If NP = PCP 1, 1/2 [1, log(n)], then every language in NP can be recognized by a machine that makes a constant number of random queries to a polynomial-sized proof. In the spirit of Cook s Theorem, the behavior of these machines can be captured as an instance of SAT. Now instances of SAT will have a gap. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 6

Cook s Theorem It is easy to show that the following language, ACCEPT, is NP-complete: Let <M, x, 1 t > be a triple consisting of a deterministic Turing machine, a binary input to M, and a string of t 1 s. <M, x, 1 t > is in the language if M accepts some string of the form <x, y> in at most t steps. (y represents a certificate). To prove SAT is NP complete, give a polynomial time algorithm designing a circuit (written as a boolean formula) outputting 1 if and only if M accepts <x, y> after t steps. Once one language is shown to be NP-complete, others are shown to be NP-complete through reductions. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 7

An Inapproximability Result The following language, PROB, is NP-complete: Let <M, x, 1 t > be a triple consisting of a Turing machine with access to log(t) random bits, a binary input x, and a string of t 1 s. <M, x, 1 t > is in the language if M accepts some input <x, y> in t steps with probability p = 1. If M ignores its random bits, PROB is the same as ACCEPT. Since PROB is NP-complete, any language in NP can be reduced to PROB through some polynomial time reduction, R. The PCP Theorem implies R exists such that: M s behavior on <x, y>, when given a particular sequence of random bits, is only a function of O(1) bits of y. OPT = p max cannot be approximated to within a factor of 2. The PCP Theorem gives us a gap introducing reduction! Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 8

Getting a Result for SAT Any language, L, in NP = PCP 1, 1/2 [1, log(n)], can be reduced to an instance of PROB where MAXPROB(x) = 1 iff L(x) = 1, and MAXPROB(x) 1/2 iff L(x) = 0. The PCP theorem implies a gap introducing reduction to PROB for any L in NP! A gap preserving reduction from PROB to SAT shows SAT is also hard to approximate. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 9

Reducing PROB to SAT We need to give a PTIME gap preserving reduction of an instance of PROB, <M, x, 1 t >, to an instance of SAT, <C 1, C 2,, C t > Here each C i denotes some constant number of clauses. Let P x (y) denote the probability M accepts x given y. This probability can computed in PTIME. Let M r, x (y) denote whether or not M accepts <x, y> on a random sequence r. P x (y) = r M r, x (y)/t (there are log(t) random bits) Recall that M r, x (y) is a function of only O(1) bits of y. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 10

Finish the reduction Let y 1,y 2,, y t be the bits of the proof, y. Each M r, x (y) is a function of only O(1) y i. Let the i th clause, C i, the conjunctive normal form (CNF) of M r, x (y). For an assignment of values to y 1,y 2,, y t, all clause in each C i for which M r, x (y) = 1 are satisfied. At least one clause in each C i for which M r, x (y) = 0 is unsatisfied. Note that each C i has constant length. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 11

What s the Gap? The gap introducing reduction to PROB, reduced problems in NP to strings of the form <M, x, 1 t >, Since M recognizes languages in PCP 1, 1/2 [1, log(n)] our approximation gap was 2. Also, each M r, x (y) is a function of at most q = O(1) bits of y. In our gap preserving reduction, an instance of SAT is produced with at most t2 q clauses of q literals. All clauses can be satisfied if <M, x, 1 t > is in PROB If <M, x, 1 t > is not in PROB, any proof, y, results in M rejecting for at least half of all r. For each r that rejects, at least one clause is unsatisfied. The gap 1/2 becomes a gap of 1 - (t/2)/t2 q = 1-1/2 q+1. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 12

From SAT to 3SAT 3SAT is SAT where each clause has at most three variables. 3SAT was one of the first problems shown to be NP-complete by a reduction from SAT. The standard reduction is already gap preserving! Clause of literals, (lit 1,lit 2,lit 3,,lit k ) becomes: (lit 1, lit 2, x 1 ) (x 1, lit 3, x 2 ), (x k-3, lit k-1, lit k ) Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 13

Now what s the gap? The instances of SAT we reduced to 3SAT have clauses with at most q literals, and a gap of at least 1-1/2 q+1. either all N clauses can be satisfied or at least N/2 q+1 clauses cannot be satisfied. To reduce SAT to 3SAT, each clause of q literals becomes q - 2 clauses of 3 literals. Whenever the original clause is unsatisfied, at least one of the q - 2 new clauses is unsatisfied. The gap is now 1 - (N/2 q+1 )/N(q-2) = 1-1/(q - 2)2 q+1 Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 14

And we could keep going See Approximation Algorithms by Vazirani for: 3SAT to 3SAT(k) 3SAT(k) to vertex cover Vertex cover(k) to Steiner tree One more quick example: 3SAT to 3Coloring Represent each clause as a triangle. Create an additional master node for each literal and connect it to every node representing its compliment. Connect all master nodes to an additional vertex. Point of interest: Planar graph coloring is still NPcomplete, but all planar graphs are 4-colorable. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 15

Can we do better? For a number of problems, we have shown there exists a constant beyond which no polynomial approximation exists (if P NP). Though interesting in theory, the actual value of the constant depends on q, the number of queries. We used the PCP theorem as a black box, and don t know q. Also, for many problems, no constant factor approximation is known. Can we show none exists? Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 16

The Approximation Hierarchy An approximation algorithm for x produces a value OPT such that OPT /OPT f(x)opt. Some known hardness results for f(x), assuming P NP: f(x) = Ω(1): SAT, 3SAT, Vertex Cover f(x) = Ω(log( x ) -1 ): Set Cover f(x) = x Ω(-c) : Clique, Independent Set Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 17

Proving Hardness for Clique Reducing PROB, <M, x, 1 t >, to SAT: Let M r, x (y) denote the function Does M accept input x on random sequence r, given proof y? <M, x, 1 t > becomes t sets of clauses representing the CNF of each M r, x (y). Each requires at most q = O(1) bits of y. Reducing PROB to CLIQUE <M, x, 1 t > becomes t sets of vertices, one for each M r, x (y). In each set, each vertex, v i, represents one of the (at most) 2 q possible inputs, i, to that M r, x (y). v i accepts if M r, x (i) = 1. v i and v j share an edge if they both accept, and i and j are consistent inputs. They agree on any bits of y in common. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 18

So What s the Gap? The PCP theorem says that if x is in the language, some y causes all M r, x (y) to accept. For this y, one vertex per set accepts. Since these vertices are consistent they form a clique of size t. If x is not in the language, every y causes at least half of the M r, x (y) to reject. A clique of k vertices yields a y causing k M r, x (y) to accept. There is no clique of size t/2. NP = PCP 1, 1/2 [1, log(n)] implies a gap of 1/2. What if NP = PCP 1, 1/n [log(n), log(n)]? Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 19

Increasing the Gap If NP = PCP 1, 1/n [log(n), log(n)], each set of 2 q vertices is now of size O(n d ) for some d. Here n denotes the length of x. Note t is polynomial in n. As before, if x is in L all M r, x (y) = 1 for some y. The graph has a clique of size t. If x isn t in L, less than 1/n of M r, x (y) = 1 for all y. The graph has no clique of size 1/n. If NP = PCP 1, 1/n [log(n), log(n)], we reduce PROB to CLIQUE with a gap of (1/n)/t = 1/n c for some c. The total number of vertices is N = O(tn d ) = O(n d+c-1 ), so the gap is at least N -O(c/(d+c)). Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 20

NP = PCP 1, 1/n [log(n), log(n)], PCP theorem: NP = PCP 1, 1/2 [1, log(n)] If a PCP verifier s protocol is repeated log(n) times, soundness goes from 1/2 to 1/n. This implies NP = PCP 1, 1/n [log(n), log 2 (n)]. Unfortunately our gap introducing reduction to CLIQUE relies on O(log(n)) random bits. We must simulate log(n) independent runs of of verifier s protocol using a single seed sequence of O(log(n)) bits. We do this next time using expander graphs. Expanders are used in the proof of the PCP theorem, as well as many other areas of theoretical computer science. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 21

Conclusion The PCP theorem implies that PROB was NPcomplete and hard to approximate if P NP. The PCP theorem implies o(1) hardness of approximation results for SAT, 3SAT, etc A modified version of the PCP theorem gives a much stronger n o(1) result for clique. We ll prove NP = PCP 1, 1/n [log(n), log(n)] using expanders. For our big-o hardness results to become numerical values, we must know the actual number of queries used by the verifier for languages in NP. Lecture 05: Complexity Classes V CS 256: Eric Rachlin and John Savage 22