CS294: PCP and Hardness of Approximation January 25, Notes for Lecture 3

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

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

On the Hardness of Satisfiability with Bounded Occurrences in the Polynomial-Time Hierarchy

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

Inapproximability of Combinatorial Optimization Problems

U.C. Berkeley CS278: Computational Complexity Professor Luca Trevisan August 30, Notes for Lecture 1

BCCS: Computational methods for complex systems Wednesday, 16 June Lecture 3

Notes for Lecture 14

U.C. Berkeley CS294: Beyond Worst-Case Analysis Handout 2 Luca Trevisan August 29, 2017

Lecture 18: PCP Theorem and Hardness of Approximation I

On the Complexity of the Minimum Independent Set Partition Problem

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

An Elementary Construction of Constant-Degree Expanders

Lecture 21 (Oct. 24): Max Cut SDP Gap and Max 2-SAT

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

U.C. Berkeley CS294: Beyond Worst-Case Analysis Handout 8 Luca Trevisan September 19, 2017

Approximation algorithm for Max Cut with unit weights

Lecture 20: Course summary and open problems. 1 Tools, theorems and related subjects

Lecture 18: More NP-Complete Problems

CS21 Decidability and Tractability

Essential facts about NP-completeness:

CS21 Decidability and Tractability

princeton univ. F 17 cos 521: Advanced Algorithm Design Lecture 6: Provable Approximation via Linear Programming

Improved Non-approximability Results for Minimum. Vertex Cover with Density Constraints.

Lecture 6,7 (Sept 27 and 29, 2011 ): Bin Packing, MAX-SAT

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

NP-Hardness reductions

Lecture 4. 1 FPTAS - Fully Polynomial Time Approximation Scheme

Lecture 11 October 7, 2013

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

The Simplest Construction of Expanders

Probabilistically Checkable Proofs. 1 Introduction to Probabilistically Checkable Proofs

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

Lecture 16: Constraint Satisfaction Problems

Algorithm Design and Analysis

Lecture 10: Hardness of approximating clique, FGLSS graph

Approximation Algorithms and Hardness of Approximation. IPM, Jan Mohammad R. Salavatipour Department of Computing Science University of Alberta

Approximability of Dense Instances of Nearest Codeword Problem

NP-complete Problems

CSC 5170: Theory of Computational Complexity Lecture 13 The Chinese University of Hong Kong 19 April 2010

Lecture 13 March 7, 2017

Phase transitions in Boolean satisfiability and graph coloring

PCP Course; Lectures 1, 2

Notes on Space-Bounded Complexity

Intro to Theory of Computation

NP-Complete Reductions 1

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

A New Proof of a Theorem of Green, Tao, and Ziegler

Affine extractors over large fields with exponential error

Increasing the Span of Stars

CSCI 1590 Intro to Computational Complexity

Lecture Notes CS:5360 Randomized Algorithms Lecture 20 and 21: Nov 6th and 8th, 2018 Scribe: Qianhang Sun

Approximation Preserving Reductions

Some Open Problems in Approximation Algorithms

NP and Computational Intractability

CS 301: Complexity of Algorithms (Term I 2008) Alex Tiskin Harald Räcke. Hamiltonian Cycle. 8.5 Sequencing Problems. Directed Hamiltonian Cycle

An Improved Upper Bound for SAT

1.1 P, NP, and NP-complete

A better approximation ratio for the Vertex Cover problem

8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM

Hardness of Approximation

Additive Combinatorics and Computational Complexity

On Subexponential and FPT-time Inapproximability

Design and Analysis of Algorithms

Polynomial-Time Reductions

Provable Approximation via Linear Programming

On Pseudorandom Generators with Linear Stretch in NC 0

Computational Intractability 2010/4/15. Lecture 2

Polynomial kernels for constant-factor approximable problems

Solution of Exercise Sheet 12

Almost-polynomial Ratio ETH-Hardness of ApproxIMATIng Densest k-subgraph. Pasin Manurangsi UC Berkeley

Notes for Lecture 25

CSCI3390-Lecture 17: A sampler of NP-complete problems

NP-Complete Problems. More reductions

On the Optimality of Some Semidefinite Programming-Based. Approximation Algorithms under the Unique Games Conjecture. A Thesis presented

The Complexity of Maximum. Matroid-Greedoid Intersection and. Weighted Greedoid Maximization

Some Open Problems in Approximation Algorithms

Show that the following problems are NP-complete

Oblivious and Adaptive Strategies for the Majority and Plurality Problems

Resolution Lower Bounds for the Weak Pigeonhole Principle

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

NP and Computational Intractability

Geometric Steiner Trees

NP-Complete Problems

PCP Theorem and Hardness of Approximation

COP 4531 Complexity & Analysis of Data Structures & Algorithms

NP-Completeness Part II

Lecture 4: NP and computational intractability

Approximation algorithms based on LP relaxation

Lecture 5: Derandomization (Part II)

Connections between exponential time and polynomial time problem Lecture Notes for CS294

The Cook-Levin Theorem

SAT, NP, NP-Completeness

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 11 Luca Trevisan February 29, 2016

On the hardness of losing width

NP-Complete Reductions 2

Restricted probabilistically checkable proofs. Jeffrey Finkelstein Computer Science Department, Boston University. May 5, 2015

Approximation Hardness of TSP with Bounded Metrics. Abstract. The general asymmetric (and metric) TSP is known

Branching. Teppo Niinimäki. Helsinki October 14, 2011 Seminar: Exact Exponential Algorithms UNIVERSITY OF HELSINKI Department of Computer Science

U.C. Berkeley Better-than-Worst-Case Analysis Handout 3 Luca Trevisan May 24, 2018

Transcription:

U.C. Berkeley Handout N3 CS294: PCP and Hardness of Approximation January 25, 2006 Professor Luca Trevisan Scribe: Luca Trevisan Notes for Lecture 3 These notes are based on my survey paper [6]. L.T. Some Consequences of the PCP Theorem We have seen that the PCP Theorem is equivalent to the inapproximability of MaSAT and other constraint satisfaction problems. In this lecture we will see several reductions that prove inapproximability results for other problems. 1 MaSAT with Bounded Occurrences We begin with a reduction from the Max E3SAT problem on general instances to the restriction of Max E3SAT to instances in which every variable occurrs only in a bounded number of clauses. The latter problem will be a useful starting point for other reductions. For the reduction we will need expander graphs of the following type. Definition 1 (Expander Graph) Let c > 0 be a constant. An undirected graph G = (V, E) is a c-expander if, for every subset S V, S V /2, the number of edges e(s, V S) having one endpoint in S and one in V S is at least c S. For our purposes, it will be acceptable for the expander graph to have multiple edges. It is easy to prove the existence of constant-degree 1-expanders using the probabilistic method. Polynomialtime constructible 1-expanders of constant degree can be derived from [1] or [5], and, with a smaller degree, from [3]. In a later class, we will prove the following result. Theorem 2 (Explicit construction of expanders) For every constant c there is a constant d = d(c) and an algorithm that on, input an integer n > d, runs in time polynomial in n and output a regular graph of degree d with n vertices that is a c-expander. In the following, we use d to denote the constant d(1) in Theorem 2. Let now ϕ be an instance of 3SAT with n variables x 1,..., x n and m clauses. For each variable x i, let occ i be the number of occurrences of x i, that is, the number of clauses that involve the literal x i or the literal x i. We write x i C j if the variable x i occurs in clause C j. Notice that n i=1 occ i = 3m. For each i, construct a 1-expander graph G i = (V i, E i ) where V i has occ i vertices, one for each occurrence of x i in ϕ. We denote the vertices of V i as pairs [i, j] such that x i occurrs in C j. Each of these graphs has constant degree d. 1

We define a new instance ψ of Max E3SAT with N = 3m variables Y = {y i,j } i [n],xi C j, one for each occurrence of each variable in ϕ. For each clause of ϕ we put an equivalent clause in ψ. That is, if C j = (x a x b x c ) is a clause in ϕ, then (y a,j y b,j y c,j ) is a clause in ψ. We call these clauses the primary clauses of ψ. Note that each variable of ψ occurs only in one primary clause. To complete the construction of ψ, for every variable x i in ϕ, and for every edge ([i, j], [i, j ]) in the graph G i, we add the clauses (y i,j ȳ i,j) and (ȳ i,j y i,j) to ψ. We call these clauses the consistency clauses of ψ. Notice that if y i,j = y i,j then both consistency clauses are satisfied, while if y i,j y i,j then one of the two consistency clauses is contradicted. This completes the construction of ψ. By construction, every variable occurrs in at most 2d + 1 clauses of ψ, and ψ has M = m + 3dm clauses. We now claim that the cost of an optimum solution in ψ is determined by the cost of an optimum solution in ϕ and, furthermore, that a good approximation algorithm applied to ψ returns a good approximation for ϕ. We prove the claim in two steps. Claim 3 If there is an assignment for ϕ that satisfies m k clauses, then there is an assignment for ψ that satisfies M k clauses. Proof: This part of the proof is simple: take the assignment for ϕ and then for every variable y i,j of ψ give to it the value that the assignment gives to x i. This assignment satisfies all the consistency clauses and all but k of the remaining clauses. Claim 4 If there is an assignment for ψ that leaves k clauses not satisfied, then there is an assignment for ϕ that leaves k clauses not satisfied. Proof: This is the interesting part of the proof. Let a i,j be the value assigned to y i,j. We first round the assignment so that all the consistency clauses are satisfied. This is done by defining an assignment b i, where, for every i, the value b i is taken to be the majority value of a i,j over all j such that x i C j, and we assign the value b i to all the variables y i,j. The assignment b i satisfies all the consistency clauses, but it is possible that it contradicts some primary clauses that were satisfied by a i,j. We claim that, overall, the b i assignment satisfies at least as many clauses as the a i,j assignment. Indeed, for each i, if b i differs from the a i,j for, say, t values of j, then there can be at most t primary clauses that were satisfied by a i,j but are contradicted by b i. On the other hand, because of the consistency clauses being laid out as the edges of a 1-expander graph, at least t consistency clauses are contradicted by the a i,j assignment for that value of i alone, and so, the b i assignment can be no worse. We conclude that b i assignment contradicts no more clauses of ψ than are contradicted by a i,j, that is, no more than k clauses. When we apply b i as an assignment for ϕ, we see that b i contradicts at most k clauses of ϕ. In conclusion: If ϕ is satisfiable then ψ is satisfiable; 2

If every assignment contradicts at least an ɛ fraction of the clauses of ϕ, then every assignment contradicts at least an ɛ/(1 + 3d) fraction of the clauses of ψ. Theorem 5 There are constants d and ɛ 2 and a polynomial time computable reduction from 3SAT to MaSAT-d such that if ϕ is satisfiable then f(ϕ) is satisfiable, and if ϕ is not satisfiable then the optimum of f(ϕ) is less than 1 ɛ 2 times the number of clauses. In particular, if there is an approximation algorithm for MaSAT-d with performance ratio better than (1 ɛ 2 ), then P = NP. 2 Vertex Cover and Independent Set In an undirected graph G = (V, E) a vertex cover is a set C V such that for every edge (u, v) E we have either u C or v C, possibly both. An independent set is a set S V such that for every two vertices u, v S we have (u, v) E. It is easy to see that a set C is a vertex cover in G if and only if V C is an independent set. It then follows that the problem of finding a minimum size vertex cover is the same as the problem of finding a maximum size independent set. From the point of view of approximation, however, the two problems are not equivalent: the Vertex Cover problem has a 2-approximate algorithm (but, as we see below, it has no PTAS unless P = NP), while the Independent Set problem has no constant-factor approximation unless P = NP. We give a reduction from Max E3SAT to Independent Set. The reduction will also prove intractability of Vertex Cover. If we start from an instance of Max E3SAT-d we will get a bounded degree graph, but the reduction works in any case. The reduction appeared in [4], and it is similar to the original proof of NP-completeness of Vertex Cover and Independent Set [2]. Starting from an instance ϕ of E3SAT with n variables and m clauses, we constuct a graph with 3m vertices; the graph has a vertex v i,j for every occurrence of a variable x i in a clause C j. For each clause C j, the three vertices corresponding to the three literals in the clause are joined by edges, and form a triangle (we call such edges clause edges). Furthermore, if a variable x i occurrs positively in a clause C j and negated in a clause C j, then there is an edge between the vertices v i,j and v i,j (we call such edges consistency edges). Let us call this graph G ϕ. See Figure 1 for an example of this construction. Note that if every variable occurrs in at most d clauses then the graph has degree at most d + 2. Claim 6 There is an independent set of size t in G ϕ if and only if there is an assignment that satisfies t clauses in ϕ. Proof: Suppose we have an assignment a i that satisfies t clauses. For each clause C j, let us pick a vertex v i,j that corresponds to a literal of C j satisfied by a i. We claim that the set of picked vertices is an independent set in G ϕ. To prove the claim, we note that we picked at most one vertex from each triangle, so that we do not violate any clause edge, and we picked vertices consistent with the assignment, so that we could not violate any consistency edge. For the other direction, suppose we have an independent set with t vertices. The vertices must come from t different triangles, corresponding to t different clauses. We claim that we can satisfy 3

x 1 x 2 x 1 x 1 x 2 x 4 Figure 1: Graph construction corresponding to the 3CNF formula ϕ = (x 1 x 2 ) (x 2 ) ( x 1 x 4 ) ( x 1 ). all such clauses. We do so by setting an assingment so that x i takes a value consistent with the vertices v i,j in the independent set, if any. Since consistency edges cannot be violated, this is a well defined assignment, and it satisfies t clauses. If we combine this reduction with Theorem 5, we get the following result. Theorem 7 There is a polynomial time computable function mapping instances ϕ of 3SAT into graphs G ϕ of maximum degree d + 2 such that if ϕ is satisfiable then G ϕ has an independent set of size at least N/3 (and a vertex over of size at most 2N/3, where N is the number of vertices, and if ϕ is not satisfiable then every independent set in G ϕ has size at most N (1 ɛ 2 )/3, and every vertex cover has size at least N (2 + ɛ 2 )/3. In particular, if there is an approximation algorithm for Independent Set in degree-(d + 2) graphs with performance ratio better than 1/(1 ɛ 2 ), or if there is an approximation algorithm for Vertex Cover in degree-(d + 2) graphs with performance ratio better than 1 + ɛ 2 /2, then P = NP. References [1] O. Gabber and Z. Galil. Explicit construction of linear sized superconcentrators. Journal of Computer and System Sciences, 22:407 425, 1981. 1 [2] R.M. Karp. Reducibility among combinatorial problems. In R.E. Miller and J.W. Thatcher, editors, Complexity of Computer Computations, pages 85 103. Plenum Press, 1972. 3 [3] Alexander Lubotzky, R. Phillips, and Peter Sarnak. Ramanujan graphs. Combinatorica, 8:261 277, 1988. 1 [4] C. H. Papadimitriou and M. Yannakakis. Optimization, approximation, and complexity classes. Journal of Computer and System Sciences, 43:425 440, 1991. Preliminary version in Proc. of STOC 88. 3 [5] Omer Reingold, Salil Vadhan, and Avi Wigderson. Entropy waves, the zig-zag graph product, and new constant-degree expanders. Annals of Mathematics, 155(1):157 187, 2002. 1 4

[6] Luca Trevisan. Inapproximability of combinatorial optimization problems. Technical Report TR04-065, Electronic Colloquium on Computational Complexity, 2004. 1 5