n Boolean variables: x 1, x 2,...,x n 2 {true,false} conjunctive normal form:
|
|
- Shona Evans
- 5 years ago
- Views:
Transcription
1 Advanced Algorithms
2 k-sat n Boolean variables: x 1, x 2,...,x n 2 {true,false} conjunctive normal form: k-cnf = C 1 ^C 2 ^ ^C m Is φ satisfiable? m clauses: C 1,C 2,...,C m each clause C i = `i1 _ `i2 _ _ `ik is a disjunction of exact k literals each literal: `j 2 {x r, x r } for some r degree d : each clause shares variables with at most d other clauses
3 φ : k-cnf of max degree d Theorem d apple 2 k 2 φ is always satisfiable uniform random assignment for clause Ci, bad event Ai : X 1,X 2,...,X n Ci is not satisfied d apple 2 k 2 Pr n i=1 A i > 0
4 Lovász Sieve Bad events: A 1, A 2,...,A n None of the bad events occurs: Pr n i=1 A i The probabilistic method: being good is possible Pr n i=1 A i > 0
5 events: A1, A2,..., An dependency graph: D(V,E) V = { 1, 2,..., n } ij E Ai and Aj are dependent d : max degree of dependency graph A 1 A 2 A 3 A 5 A 4 A 1 (X 1, X 4 ) A 4 (X 4 ) A 2 (X 1, X 2 ) A 5 (X 3 ) A 3 (X 2, X 3 ) X 1,...,X 4 mutually independent
6 events: A1, A2,..., An d : max degree of dependency graph Lovász Local Lemma i, Pr[Ai] p ep(d + 1) 1 Pr n i=1 A i > 0 General Lovász Local Lemma 9x 1,...,x n 2 [0, 1) " n^ Pr 8i, Pr[A i ] apple x i (1 x j ) j i i=1 A i # n (1 x i ) i=1
7 LLL for k-sat φ : k-cnf of max degree d Theorem d apple 2 k 2 satisfying assignment for φ uniform random assignment for clause Ci, bad event Ai : X 1,X 2,...,X n Ci is not satisfied LLL: e(d + 1) apple 2 k Pr n i=1 A i > 0
8 Algorithmic LLL φ : k-cnf of max degree d with m clauses on n variables Theorem d apple 2 k 2 satisfying assignment for φ Theorem (Moser, 2009) satisfying assignment can be d<2 k 3 found in O(n + km logm) w.h.p.
9 φ : k-cnf of max degree d with m clauses on n variables Solve(φ) pick a random assignment x1, x2,..., xn; while unsatisfied clause C Fix(C); Fix(C) replace variables in C with random values; while unsatisfied clause D overlapping with C Fix(D);
10 φ : k-cnf of max degree d with m clauses on n variables Solve(φ) Pick a random assignment x1, x2,..., xn; while unsatisfied clause C Fix(C); Fix(C) replace variables in C with random values; while unsatisfied clause D overlapping with C Fix(D); at top-level: Observation: A clause C is satisfied and will keep satisfied once it has been fixed. # of top-level calls to Fix(C) : m (# of clauses) total # of calls to Fix(C) (including recursive calls): t
11 φ : k-cnf of max degree d with m clauses on n variables Solve(φ) Pick a random assignment x1, x2,..., xn; while unsatisfied clause C Fix(C); Fix(C) replace variables in C with random values; while unsatisfied clause D overlapping with C Fix(D); m recursion trees total # nodes: t total # of random bits: n+tk (assigned bits) Observation: Fix(C) is called assignment of C is uniquely determined
12 m recursion trees total # nodes: t total # of random bits: n+tk (assigned bits) the sequence of random bits can be recovered from: final assignment: + recursion trees: n bits apple mdlog 2 me + t(log 2 d + O(1)) bits for each recursion tree: root: dlog 2 me bits each internal node: apple log 2 d+ O(1) bits
13 m recursion trees total # nodes: t total # of random bits: n+tk (assigned bits) the sequence of random bits is encoded to : apple n + mdlog 2 me + t(log 2 d + 3) bits Incompressibility Theorem (Kolmogorov) N uniform random bits cannot be encoded to substantially less than N bits.
14 m recursion trees total # nodes: t total # of random bits: n+tk (assigned bits) the sequence of random bits is encoded to : apple n + mdlog 2 me + t(log 2 d + 3) bits Incompressibility Theorem (Kolmogorov) N uniform random bits cannot be encoded to less than N - l bits with probability 1-O(2 -l ).
15 m recursion trees total # nodes: t total # of random bits: n+tk (assigned bits) the sequence of random bits is encoded to : apple n + mdlog 2 me + t(log 2 d + c) bits t(k c log 2 d) apple mdlog 2 me + log n whp when d<2 k c t apple mdlog 2 me + log n k c log 2 d total running time: n+tk = O(n + km logm)
16 Algorithmic LLL φ : k-cnf of max degree d with m clauses on n variables = C 1 ^C 2 ^ ^C m Theorem (Moser, 2009) d<2 k c satisfying assignment can be found in O(n + km logm) whp Solve(φ) Pick a random assignment x1, x2,..., xn; while unsatisfied clause C Fix(C); Fix(C) replace variables in C with random values; while unsatisfied clause D overlapping with C Fix(D);
17 events: A1, A2,..., An d : max degree of dependency graph Lovász Local Lemma i, Pr[Ai] p ep(d + 1) 1 Pr n i=1 A i > 0 General Lovász Local Lemma 9x 1,...,x n 2 [0, 1) " n^ Pr 8i, Pr[A i ] apple x i (1 x j ) j i i=1 A i # n (1 x i ) i=1
18 Constraint Satisfaction Problem variables: x1, x2,..., xn D (domain) constraints: C1, C2,..., Cm where C i (x i1,x i2,...) 2 {true, false} CSP solution: an assignment of variables satisfying all constraints examples: SAT, graph colorability,... existence: When does a solution exist? search: How to find a solution?
19 The Probabilistic Method CSP C1, C2,..., Cm defined on x1, x2,..., xn sampling random values of x1, x2,..., xn Bad event Ai: constraint Ci is violated None of the bad events occurs with prob: Pr " m^ i A i # The probabilistic method: being good is possible " m^ Pr i=1 A i # > 0
20 events: A1, A2,..., An d : max degree of dependency graph Lovász Local Lemma i, Pr[Ai] p ep(d + 1) 1 Pr n i=1 A i > 0 General Lovász Local Lemma 9x 1,...,x n 2 [0, 1) " n^ Pr 8i, Pr[A i ] apple x i (1 x j ) j i i=1 A i # n (1 x i ) i=1
21 mutually independent random variables: X X bad events: A A defined on variables in X vbl(a) X: set of variables on which A is defined neighborhood: Γ(A) = { B A B A and vbl(a) vbl(b) } inclusive neighborhood: Γ + (A) = Γ(A) { A } events that are dependent with A, excluding/including A itself Lovász Local Lemma (general) 9 : A! [0, 1) 8A 2 A : Pr[A] apple A (1 B ) B2 (A) " ^ Pr A2A A # > 0 (1 A ) A2A
22 mutually independent random variables: X X bad events: A A defined on variables in X vbl(a) X: set of variables on which A is defined neighborhood: Γ(A) = { B A B A and vbl(a) vbl(b) } inclusive neighborhood: Γ + (A) = Γ(A) { A } events that are dependent with A, excluding/including A itself Lovász Local Lemma (general) 9 : A! [0, 1) 8A 2 A : Pr[A] apple A B2 (A) (1 B ) values of variables in X avoiding all bad events A A simultaneously.
23 Algorithmic LLL bad events A A defined on mutually independent random variables X X vbl(a): set of variables on which A is defined neighborhood Γ(A) and inclusive neighborhood Γ + (A) Assumption: I. We can efficiently sample an independent evaluation of every random variable X X. II. We can efficiently check the violation of every event A A. RandomSolver: sample all X X; while a non-violated bad event A A: resample all X vbl(a);
24 bad events A A defined on mutually independent random variables X X vbl(a): set of variables on which A is defined neighborhood Γ(A) and inclusive neighborhood Γ + (A) RandomSolver: sample all X X; while a non-violated bad event A A: resample all X vbl(a); Moser-Tardos 2010: 9 : A! [0, 1) 8A 2 A : Pr[A] apple A B2 (A) (1 B ) RandomSolver finds values of all X X avoiding all A A X within expected A 1 resamples. A A2A
25 bad events A A defined on mutually independent random variables X X vbl(a): set of variables on which A is defined neighborhood Γ(A) and inclusive neighborhood Γ + (A) RandomSolver: sample all X X; while a non-violated bad event A A: resample all X vbl(a); Moser-Tardos 2010: A A, Pr[A] p ep(d + 1) 1 where d=max A Γ(A) RandomSolver finds values of all X X violating all A A within expected A /d resamples.
26 k-sat φ : k-cnf of max degree d with m clauses on n variables RandomSolver: pick a random assignment x1, x2,..., xn; while an unsatisfied clause C: replace variables in C with random values; d apple 2 k 2 ( e(d+1) 2 k ) RandomSolver returns a satisfying assignment within expected O(n + km/d) time
27 bad events A A defined on mutually independent random variables X X vbl(a): set of variables on which A is defined neighborhood Γ(A) and inclusive neighborhood Γ + (A) RandomSolver: sample all X X; while a non-violated bad event A A: resample all X vbl(a); Moser-Tardos 2010: 9 : A! [0, 1) 8A 2 A : Pr[A] apple A B2 (A) (1 B ) RandomSolver finds values of all X X avoiding all A A X within expected A 1 resamples. A A2A
28 RandomSolver: sample all X X; while a non-violated A A: resample all X vbl(a); execution log Λ: Λ1, Λ2, Λ3,... A random sequence of resampled events NA = { i Λi=A } total # of times that A is resampled Moser-Tardos 2010: 9 : A! [0, 1) 8A 2 A : Pr[A] apple A B2 (A) 8A 2 A : E[N (1 B ) A ] apple A 1 A
29 RandomSolver: sample all X X; while a non-violated A A: resample all X vbl(a); execution log Λ: Λ1, Λ2, Λ3,... A random sequence of resampled events witness tree: A witness tree τ is a labeled tree in which every vertex v is labeled by an event Av A, such that siblings have distinct labels. T(Λ, t) is a witness tree constructed from exe-log Λ: initially, T is a single root with label Λt for i = t-1, t-2,...,1 if a vertex v in T with label Av Γ + (Λi) add a new child u to the deepest such v and label it with Λi T(Λ, t) is the resulting T
30 dependency graph: B A E C D exe-log Λ: D, C, E, D, B, A, C, A, D,... T(Λ, 8): B A A E D C T(Λ, t) is a witness tree constructed from exe-log Λ: initially, T is a single root with label Λt for i = t-1, t-2,...,1 if a vertex v in T with label Av Γ + (Λi) add a new child u to the deepest such v and label it with Λi T(Λ, t) is the resulting T
31 dependency graph: B A E C D exe-log Λ: D, C, E, D, B, A, C, A, D,... T(Λ, 8): D B A C A E T(Λ, 9): T(Λ, t) is a witness tree constructed from exe-log Λ: initially, T is a single root with label Λt for i = t-1, t-2,...,1 if a vertex v in T with label Av Γ + (Λi) add a new child u to the deepest such v and label it with Λi T(Λ, t) is the resulting T B C E D D D C
32 RandomSolver: sample all X X; while a non-violated A A: resample all X vbl(a); execution log Λ: Λ1, Λ2, Λ3,... A random sequence of resampled events witness tree: A witness tree τ is a labeled tree in which every vertex v is labeled by an event Av A, such that siblings have distinct labels. T(Λ, t) is a witness tree constructed from exe-log Λ: initially, T is a single root with label Λt for i = t-1, t-2,...,1 if a vertex v in T with label Av Γ + (Λi) add a new child u to the deepest such v and label it with Λi T(Λ, t) is the resulting T T(Λ, s) T(Λ, t) if s t E[N A ]= X 2T A Pr[9t, T (,t)= ] TA: set of all witness trees with root-label A
33 RandomSolver: sample all X X; while a non-violated A A: resample all X vbl(a); execution log Λ: Λ1, Λ2, Λ3,... A random sequence of resampled events T(Λ, t) is a witness tree constructed from exe-log Λ: initially, T is a single root with label Λt for i = t-1, t-2,...,1 if a vertex v in T with label Av Γ + (Λi) add a new child u to the deepest such v and label it with Λi T(Λ, t) is the resulting T Lemma 1 For any particular witness tree τ: Pr[9t, T (,t)= ] apple v2 Pr[A v ]
34 RandomSolver: sample all X X; while a non-violated A A: resample all X vbl(a); execution log Λ: Λ1, Λ2, Λ3,... A random sequence of resampled events Lemma 1 For any particular witness tree τ: Pr[9t, T (,t)= ] apple v2 Pr[A v ] NA = { i Λi=A } total # of times that A is resampled E[N A ]= X Pr[9t, T (,t)= ] 2T A X (lemma 1) apple Pr[A v ] TA: set of all witness trees with root-label A 2T A v2
35 RandomSolver: sample all X X; while a non-violated A A: resample all X vbl(a); LLL condition: 8A 2 A : (lemma 1) (LLL cond.) Pr[A] apple A E[N A ]= X Pr[9t, T (,t)= ] 2T X A apple Pr[A v ] 2T A apple X 2T A 9 : A! [0, 1) v2 v2 B2 (A) 2 4 (A v ) execution log Λ: random sequence of resampled events (1 B ) B2 (A v ) Λ1, Λ2, Λ3,... A 3 (1 (B)) 5 TA: set of all witness trees with root-label A goal: apple A 1 A
36 RandomSolver: sample all X X; while a non-violated A A: resample all X vbl(a); execution log Λ: Λ1, Λ2, Λ3,... A random sequence of resampled events Lemma 1 For any particular witness tree τ: Pr[9t, T (,t)= ] apple v2 Pr[A v ] X (t) i : t-th sampling of variable Xi X exe-log Λ: D,C,E,D,B,A,C,A,D,... X 1 : X (0) 1,X(1) 1,X(2) 1,X(3) 1,X(4) 1,... B(X 2,X 3 ) A X 2 : X (0) 2,X(1) 2,X(2) 2,X(3) 2,X(4) 2,... X 3 : X (0) 3,X(1) 3,X(2) 3,X(3) 3,X(4) 3,... X 4 : X (0) 4,X(1) 4,X(2) 4,X(3) 4,X(4) 4,... A(X 1,X 2 ) E(X 1,X 4 ) C(X 3,X 4 ) D(X 4 ) D B A C E
37 RandomSolver: sample all X X; while a non-violated A A: resample all X vbl(a); execution log Λ: Λ1, Λ2, Λ3,... A random sequence of resampled events Lemma 1 For any particular witness tree τ: Pr[9t, T (,t)= ] apple v2 Pr[A v ] NA = { i Λi=A } total # of times that A is resampled E[N A ]= X Pr[9t, T (,t)= ] 2T A X (lemma 1) apple Pr[A v ] TA: set of all witness trees with root-label A 2T A v2
38 RandomSolver: sample all X X; while a non-violated A A: resample all X vbl(a); LLL condition: 8A 2 A : (lemma 1) (LLL cond.) Pr[A] apple A E[N A ]= X Pr[9t, T (,t)= ] 2T X A apple Pr[A v ] 2T A apple X 2T A 9 : A! [0, 1) v2 v2 B2 (A) 2 4 (A v ) execution log Λ: random sequence of resampled events (1 B ) B2 (A v ) Λ1, Λ2, Λ3,... A 3 (1 (B)) 5 TA: set of all witness trees with root-label A goal: apple A 1 A
39 grow a random witness tree TA TA : initially, TA is a single root with label A for i = 1, 2,... for every vertex v at depth i (root has depth 1) in TA for every B Γ + (Av): add a new child u to v independently with probability αb; and label it with B; stop if no new child added for an entire level Lemma 2 Pr[T A = ] = 1 For any particular witness tree τ TA: A A 2 4 (A v ) v2 B2 (A v ) 3 (1 B ) 5
40 Lemma 2 Pr[T A = ] = 1 For any particular witness tree τ TA: A A 2 4 (A v ) v2 B2 (A v ) 3 (1 B ) 5 in τ: A + (A) : Pr[T A = ] = 1 A v2 = 1 A A = 1 A A 2 4 (A v ) v2 v2 2 ) + 0 (A) B2 + 0 (A v) 4 (A v) 1 (A v ) 2 4 (A v ) B2 (A v ) 3 (1 B ) 5 B2 + (A v ) (1 B ) 5 3 (1 B ) 5 3
41 RandomSolver: sample all X X; while a non-violated A A: resample all X vbl(a); LLL condition: 8A 2 A : (lemma 1) (LLL cond.) Pr[A] apple A E[N A ]= X Pr[9t, T (,t)= ] 2T X A apple Pr[A v ] 2T A apple X 2T A 9 : A! [0, 1) v2 v2 B2 (A) 2 4 (A v ) execution log Λ: random sequence of resampled events (1 B ) B2 (A v ) Λ1, Λ2, Λ3,... A 3 (1 (B)) 5 (lemma 2) apple A apple X A Pr[T A = ] 1 A 1 A 2T A TA: set of all witness trees with root-label A
42 bad events A A defined on mutually independent random variables X X vbl(a): set of variables on which A is defined neighborhood Γ(A) and inclusive neighborhood Γ + (A) RandomSolver: sample all X X; while a non-violated bad event A A: resample all X vbl(a); Moser-Tardos 2010: 9 : A! [0, 1) 8A 2 A : Pr[A] apple (A) B2 (A) (1 (B)) RandomSolver finds values of all X X violating all A A X (A) within expected 1 (A) A2A resamples.
Advanced Algorithms 南京大学 尹一通
Advanced Algorithms 南京大学 尹一通 Constraint Satisfaction Problem variables: (CSP) X = {x 1, x2,..., xn} each variable ranges over a finite domain Ω an assignment σ ΩX assigns each variable a value in Ω constraints:
More informationThe Lovász Local Lemma : A constructive proof
The Lovász Local Lemma : A constructive proof Andrew Li 19 May 2016 Abstract The Lovász Local Lemma is a tool used to non-constructively prove existence of combinatorial objects meeting a certain conditions.
More informationLecture Notes CS:5360 Randomized Algorithms Lecture 20 and 21: Nov 6th and 8th, 2018 Scribe: Qianhang Sun
1 Probabilistic Method Lecture Notes CS:5360 Randomized Algorithms Lecture 20 and 21: Nov 6th and 8th, 2018 Scribe: Qianhang Sun Turning the MaxCut proof into an algorithm. { Las Vegas Algorithm Algorithm
More informationLecture # 12. Agenda: I. Vector Program Relaxation for Max Cut problem. Consider the vectors are in a sphere. Lecturer: Prof.
Lecture # 12 Lecturer: Prof. Allan Borodin Scribe: Yeleiny Bonilla Agenda: I. Finish discussion of Vector Program Relaxation for Max-Cut problem. II. Briefly discuss same approach for Max-2-Sat. III. The
More informationLecture 11: Generalized Lovász Local Lemma. Lovász Local Lemma
Lecture 11: Generalized Recall We design an experiment with independent random variables X 1,..., X m We define bad events A 1,..., A n where) the bad event A i depends on the variables (X k1,..., X kni
More informationAn extension of the Moser-Tardos algorithmic local lemma
An extension of the Moser-Tardos algorithmic local lemma Wesley Pegden January 26, 2013 Abstract A recent theorem of Bissacot, et al. proved using results about the cluster expansion in statistical mechanics
More informationThe Probabilistic Method
The Probabilistic Method Janabel Xia and Tejas Gopalakrishna MIT PRIMES Reading Group, mentors Gwen McKinley and Jake Wellens December 7th, 2018 Janabel Xia and Tejas Gopalakrishna Probabilistic Method
More informationDeterministic Algorithms for the Lovász Local Lemma
Deterministic Algorithms for the Lovász Local Lemma The MIT Faculty has made this article openly available. Please share how this access benefits you. Your story matters. Citation As Published Publisher
More informationProof Complexity Meets Algebra
ICALP 17, Warsaw 11th July 2017 (CSP problem) P 3-COL S resolution (proof system) Proofs in S of the fact that an instance of P is unsatisfiable. Resolution proofs of a graph being not 3-colorable. Standard
More informationPropositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel
Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/
More informationGlobal Optima from Local Algorithms
Global Optima from Local Algorithms Dimitris Achlioptas 1 Fotis Iliopoulos 2 1 UC Santa Cruz 2 UC Berkeley Dimitris Achlioptas (UC Santa Cruz) Global Optima from Local Algorithms IMA Graphical Models 2015
More informationLovász Local Lemma: A Survey of Constructive and Algorithmic Aspects, with an Application to Packet Routing
Lovász Local Lemma: A Survey of Constructive and Algorithmic Aspects, with an Application to Packet Routing CPSC 536N - Term Porject Bader N. Alahmad 1 Introduction The Lovász Local Lemma (LLL) is a mathematical
More informationLecture 10 Algorithmic version of the local lemma
Lecture 10 Algorithmic version of the local lemma Uriel Feige Department of Computer Science and Applied Mathematics The Weizman Institute Rehovot 76100, Israel uriel.feige@weizmann.ac.il June 9, 2014
More informationRobin Moser makes Lovász Local Lemma Algorithmic! Notes of Joel Spencer
Robin Moser makes Lovász Local Lemma Algorithmic! Notes of Joel Spencer 1 Preliminaries The idea in these notes is to explain a new approach of Robin Moser 1 to give an algorithm for the Lovász Local Lemma.
More informationBranching. Teppo Niinimäki. Helsinki October 14, 2011 Seminar: Exact Exponential Algorithms UNIVERSITY OF HELSINKI Department of Computer Science
Branching Teppo Niinimäki Helsinki October 14, 2011 Seminar: Exact Exponential Algorithms UNIVERSITY OF HELSINKI Department of Computer Science 1 For a large number of important computational problems
More informationProbabilistic Constructions of Computable Objects and a Computable Version of Lovász Local Lemma.
Probabilistic Constructions of Computable Objects and a Computable Version of Lovász Local Lemma. Andrei Rumyantsev, Alexander Shen * January 17, 2013 Abstract A nonconstructive proof can be used to prove
More informationThe Lovász Local Lemma: constructive aspects, stronger variants and the hard core model
The Lovász Local Lemma: constructive aspects, stronger variants and the hard core model Jan Vondrák 1 1 Dept. of Mathematics Stanford University joint work with Nick Harvey (UBC) The Lovász Local Lemma
More informationarxiv: v5 [cs.ds] 2 Oct 2011
New Constructive Aspects of the Lovász Local Lemma Bernhard Haeupler Barna Saha Aravind Srinivasan October 4, 2011 arxiv:1001.1231v5 [cs.ds] 2 Oct 2011 Abstract The Lovász Local Lemma (LLL) is a powerful
More informationPropositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel
Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/
More informationNP-Complete Problems
NP-Complete Problems Max Bisection Is NP-Complete max cut becomes max bisection if we require that S = V S. We shall reduce the more general max cut to max bisection. Add V isolated nodes to G to yield
More informationLecture 9: Search 8. Victor R. Lesser. CMPSCI 683 Fall 2010
Lecture 9: Search 8 Victor R. Lesser CMPSCI 683 Fall 2010 ANNOUNCEMENTS REMEMBER LECTURE ON TUESDAY! EXAM ON OCTOBER 18 OPEN BOOK ALL MATERIAL COVERED IN LECTURES REQUIRED READINGS WILL MOST PROBABLY NOT
More informationNP-Hardness reductions
NP-Hardness reductions Definition: P is the class of problems that can be solved in polynomial time, that is n c for a constant c Roughly, if a problem is in P then it's easy, and if it's not in P then
More informationMaximum 3-SAT as QUBO
Maximum 3-SAT as QUBO Michael J. Dinneen 1 Semester 2, 2016 1/15 1 Slides mostly based on Alex Fowler s and Rong (Richard) Wang s notes. Boolean Formula 2/15 A Boolean variable is a variable that can take
More informationComp487/587 - Boolean Formulas
Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested
More informationNotes for Lecture 2. Statement of the PCP Theorem and Constraint Satisfaction
U.C. Berkeley Handout N2 CS294: PCP and Hardness of Approximation January 23, 2006 Professor Luca Trevisan Scribe: Luca Trevisan Notes for Lecture 2 These notes are based on my survey paper [5]. L.T. Statement
More informationLecture 18: More NP-Complete Problems
6.045 Lecture 18: More NP-Complete Problems 1 The Clique Problem a d f c b e g Given a graph G and positive k, does G contain a complete subgraph on k nodes? CLIQUE = { (G,k) G is an undirected graph with
More informationLecture 10: Lovász Local Lemma. Lovász Local Lemma
Lecture 10: Introduction Let A 1,..., A n be indicator variables for bad events in an experiment Suppose P [A i ] p We want to avoid all the bad events If P [ A 1 A n ] > 0, then there exists a way to
More informationConjunctive Normal Form and SAT
Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca October 4, 2015 These notes are a preliminary draft. Please use freely, but do not re-distribute
More informationNP-Complete Reductions 2
x 1 x 1 x 2 x 2 x 3 x 3 x 4 x 4 12 22 32 CS 447 11 13 21 23 31 33 Algorithms NP-Complete Reductions 2 Prof. Gregory Provan Department of Computer Science University College Cork 1 Lecture Outline NP-Complete
More informationNP and Computational Intractability
NP and Computational Intractability 1 Polynomial-Time Reduction Desiderata'. Suppose we could solve X in polynomial-time. What else could we solve in polynomial time? don't confuse with reduces from Reduction.
More informationAnnouncements. 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?
N P NP Completeness Announcements Friday Four Square! Today at 4:15PM, outside Gates. Problem Set 8 due right now. Problem Set 9 out, due next Friday at 2:15PM. Explore P, NP, and their connection. Did
More informationLecture 24 : Even more reductions
COMPSCI 330: Design and Analysis of Algorithms December 5, 2017 Lecture 24 : Even more reductions Lecturer: Yu Cheng Scribe: Will Wang 1 Overview Last two lectures, we showed the technique of reduction
More informationGeometric Steiner Trees
Geometric Steiner Trees From the book: Optimal Interconnection Trees in the Plane By Marcus Brazil and Martin Zachariasen Part 3: Computational Complexity and the Steiner Tree Problem Marcus Brazil 2015
More informationA brief introduction to Logic. (slides from
A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity
More informationAutomata Theory CS Complexity Theory I: Polynomial Time
Automata Theory CS411-2015-17 Complexity Theory I: Polynomial Time David Galles Department of Computer Science University of San Francisco 17-0: Tractable vs. Intractable If a problem is recursive, then
More informationCritical Reading of Optimization Methods for Logical Inference [1]
Critical Reading of Optimization Methods for Logical Inference [1] Undergraduate Research Internship Department of Management Sciences Fall 2007 Supervisor: Dr. Miguel Anjos UNIVERSITY OF WATERLOO Rajesh
More informationNP-Completeness Part II
NP-Completeness Part II Recap from Last Time NP-Hardness A language L is called NP-hard iff for every L' NP, we have L' P L. A language in L is called NP-complete iff L is NP-hard and L NP. The class NPC
More informationLecture 24: April 12
CS271 Randomness & Computation Spring 2018 Instructor: Alistair Sinclair Lecture 24: April 12 Disclaimer: These notes have not been subjected to the usual scrutiny accorded to formal publications. They
More informationPCPs and Inapproximability Gap-producing and Gap-Preserving Reductions. My T. Thai
PCPs and Inapproximability Gap-producing and Gap-Preserving Reductions My T. Thai 1 1 Hardness of Approximation Consider a maximization problem Π such as MAX-E3SAT. To show that it is NP-hard to approximation
More informationWorst-Case Upper Bound for (1, 2)-QSAT
Worst-Case Upper Bound for (1, 2)-QSAT Minghao Yin Department of Computer, Northeast Normal University, Changchun, China, 130117 ymh@nenu.edu.cn Abstract. The rigorous theoretical analysis of the algorithm
More informationSAT, Coloring, Hamiltonian Cycle, TSP
1 SAT, Coloring, Hamiltonian Cycle, TSP Slides by Carl Kingsford Apr. 28, 2014 Sects. 8.2, 8.7, 8.5 2 Boolean Formulas Boolean Formulas: Variables: x 1, x 2, x 3 (can be either true or false) Terms: t
More informationPart V. Intractable Problems
Part V Intractable Problems 507 Chapter 16 N P-Completeness Up to now, we have focused on developing efficient algorithms for solving problems. The word efficient is somewhat subjective, and the degree
More informationShow that the following problems are NP-complete
Show that the following problems are NP-complete April 7, 2018 Below is a list of 30 exercises in which you are asked to prove that some problem is NP-complete. The goal is to better understand the theory
More informationComplexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler
Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard
More informationOutline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.
Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität
More informationSAT, NP, NP-Completeness
CS 473: Algorithms, Spring 2018 SAT, NP, NP-Completeness Lecture 22 April 13, 2018 Most slides are courtesy Prof. Chekuri Ruta (UIUC) CS473 1 Spring 2018 1 / 57 Part I Reductions Continued Ruta (UIUC)
More informationCSCI 1590 Intro to Computational Complexity
CSCI 1590 Intro to Computational Complexity NP-Complete Languages John E. Savage Brown University February 2, 2009 John E. Savage (Brown University) CSCI 1590 Intro to Computational Complexity February
More informationInterleaved Alldifferent Constraints: CSP vs. SAT Approaches
Interleaved Alldifferent Constraints: CSP vs. SAT Approaches Frédéric Lardeux 3, Eric Monfroy 1,2, and Frédéric Saubion 3 1 Universidad Técnica Federico Santa María, Valparaíso, Chile 2 LINA, Université
More informationCS 5114: Theory of Algorithms. Tractable Problems. Tractable Problems (cont) Decision Problems. Clifford A. Shaffer. Spring 2014
Department of Computer Science Virginia Tech Blacksburg, Virginia Copyright c 2014 by Clifford A. Shaffer : Theory of Algorithms Title page : Theory of Algorithms Clifford A. Shaffer Spring 2014 Clifford
More informationA constructive algorithm for the Lovász Local Lemma on permutations
A constructive algorithm for the Lovász Local Lemma on permutations David G. Harris Aravind Srinivasan Abstract While there has been significant progress on algorithmic aspects of the Lovász Local Lemma
More informationAn Improved Upper Bound for SAT
An Improved Upper Bound for SAT Evgeny Dantsin and Alexander Wolpert Roosevelt University, 430 S. Michigan Av., Chicago, IL 60605, USA {edantsin, awolpert}@roosevelt.edu Abstract. We give a randomized
More informationTHE MOSER-TARDOS FRAMEWORK WITH PARTIAL RESAMPLING
THE MOSER-TARDOS FRAMEWORK WITH PARTIAL RESAMPLING DAVID G. HARRIS 1 AND ARAVIND SRINIVASAN 2 Abstract. The resampling algorithm of Moser & Tardos is a powerful approach to develop constructive versions
More informationComputing the Independence Polynomial: from the Tree Threshold Down to the Roots
1 / 16 Computing the Independence Polynomial: from the Tree Threshold Down to the Roots Nick Harvey 1 Piyush Srivastava 2 Jan Vondrák 3 1 UBC 2 Tata Institute 3 Stanford SODA 2018 The Lovász Local Lemma
More informationConjunctive Normal Form and SAT
Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca September 10, 2014 These notes are a preliminary draft. Please use freely, but do not re-distribute
More informationOn the size of minimal unsatisfiable formulas
On the size of minimal unsatisfiable formulas Choongbum Lee Submitted: 2008; Accepted: 2008; Published: XX Mathematics Subject Classification: 05D99(Primary); 05C15, 68R10(Secondary) Abstract An unsatisfiable
More informationOn the Algorithmic Lovász Local Lemma and Acyclic Edge Coloring
On the Algorithmic Lovász Local Lemma and Acyclic Edge Coloring Ioannis Giotis,2, Lefteris Kirousis,2, Kostas I. Psaromiligkos, and Dimitrios M. Thilikos,2,3 Department of Mathematics, National & Kapodistrian
More information8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM
8. INTRACTABILITY I poly-time reductions packing and covering problems constraint satisfaction problems sequencing problems partitioning problems graph coloring numerical problems Lecture slides by Kevin
More informationLimits to Approximability: When Algorithms Won't Help You. Note: Contents of today s lecture won t be on the exam
Limits to Approximability: When Algorithms Won't Help You Note: Contents of today s lecture won t be on the exam Outline Limits to Approximability: basic results Detour: Provers, verifiers, and NP Graph
More informationIntroduction to Advanced Results
Introduction to Advanced Results Master Informatique Université Paris 5 René Descartes 2016 Master Info. Complexity Advanced Results 1/26 Outline Boolean Hierarchy Probabilistic Complexity Parameterized
More informationThe Satisfiability Problem: Random Walk and Derandomization
The Satisfiability Problem: Random Walk and Derandomization Timo Eckstein FAU Erlangen-Nürnberg 21. September 2014-3. October 2014 Timo Eckstein: The Satisfiability Problem: Random Walk and Derandomization
More informationNP-complete Problems
NP-complete Problems HP, TSP, 3COL, 0/1IP Dimitris Diamantis µπλ November 6, 2014 Dimitris Diamantis (µπλ ) NP-complete Problems November 6, 2014 1 / 34 HAMILTON PATH is NP-Complete Definition Given an
More informationProbabilistic Methods in Combinatorics Lecture 6
Probabilistic Methods in Combinatorics Lecture 6 Linyuan Lu University of South Carolina Mathematical Sciences Center at Tsinghua University November 16, 2011 December 30, 2011 Balance graphs H has v vertices
More informationA Lower Bound for the Distributed Lovász Local Lemma
A Lower Bound for the Distributed Lovász Local Lemma Sebastian Brandt, Orr Fischer, Juho Hirvonen, Barbara Keller, Tuomo Lempiäinen, Joel Rybicki, Jukka Suomela, Jara Uitto Aalto University, Comerge AG,
More information9. PSPACE 9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete
Geography game Geography. Alice names capital city c of country she is in. Bob names a capital city c' that starts with the letter on which c ends. Alice and Bob repeat this game until one player is unable
More informationCOP 4531 Complexity & Analysis of Data Structures & Algorithms
COP 4531 Complexity & Analysis of Data Structures & Algorithms Lecture 18 Reductions and NP-completeness Thanks to Kevin Wayne and the text authors who contributed to these slides Classify Problems According
More informationEssential facts about NP-completeness:
CMPSCI611: NP Completeness Lecture 17 Essential facts about NP-completeness: Any NP-complete problem can be solved by a simple, but exponentially slow algorithm. We don t have polynomial-time solutions
More information9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete
9. PSPACE PSPACE complexity class quantified satisfiability planning problem PSPACE-complete Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley Copyright 2013 Kevin Wayne http://www.cs.princeton.edu/~wayne/kleinberg-tardos
More informationCollege of Computer & Information Science Fall 2009 Northeastern University 22 September 2009
College of Computer & Information Science Fall 2009 Northeastern University 22 September 2009 CS 7880: Algorithmic Power Tools Scribe: Eric Miles Lecture Outline: General Lovász Local Lemma Two Simple
More informationPrice: $25 (incl. T-Shirt, morning tea and lunch) Visit:
Three days of interesting talks & workshops from industry experts across Australia Explore new computing topics Network with students & employers in Brisbane Price: $25 (incl. T-Shirt, morning tea and
More informationStanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/21/2010
Stanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/2/200 Counting Problems Today we describe counting problems and the class #P that they define, and we show that every counting
More informationComplexity Classes V. More PCPs. Eric Rachlin
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
More informationHeuristics for Efficient SAT Solving. As implemented in GRASP, Chaff and GSAT.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT. Formulation of famous problems as SAT: k-coloring (1/2) The K-Coloring problem: Given an undirected graph G(V,E) and a natural
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 31. Propositional Logic: DPLL Algorithm Malte Helmert and Gabriele Röger University of Basel April 24, 2017 Propositional Logic: Overview Chapter overview: propositional
More informationPropositional Logic: Models and Proofs
Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505
More informationTecniche di Verifica. Introduction to Propositional Logic
Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called
More informationCSI 4105 MIDTERM SOLUTION
University of Ottawa CSI 4105 MIDTERM SOLUTION Instructor: Lucia Moura Feb 6, 2010 10:00 am Duration: 1:50 hs Closed book Last name: First name: Student number: There are 4 questions and 100 marks total.
More informationNP and Computational Intractability
NP and Computational Intractability 1 Review Basic reduction strategies. Simple equivalence: INDEPENDENT-SET P VERTEX-COVER. Special case to general case: VERTEX-COVER P SET-COVER. Encoding with gadgets:
More informationCSC 2429 Approaches to the P vs. NP Question and Related Complexity Questions Lecture 2: Switching Lemma, AC 0 Circuit Lower Bounds
CSC 2429 Approaches to the P vs. NP Question and Related Complexity Questions Lecture 2: Switching Lemma, AC 0 Circuit Lower Bounds Lecturer: Toniann Pitassi Scribe: Robert Robere Winter 2014 1 Switching
More informationAdvanced Algorithms (XIII) Yijia Chen Fudan University
Advanced Algorithms (XIII) Yijia Chen Fudan University The PCP Theorem Theorem NP = PCP(log n, 1). Motivation Approximate solutions Definition (Approximation of MAX-3SAT) For every 3CNF formula ϕ, the
More informationNP Completeness. CS 374: Algorithms & Models of Computation, Spring Lecture 23. November 19, 2015
CS 374: Algorithms & Models of Computation, Spring 2015 NP Completeness Lecture 23 November 19, 2015 Chandra & Lenny (UIUC) CS374 1 Spring 2015 1 / 37 Part I NP-Completeness Chandra & Lenny (UIUC) CS374
More informationAn Algorithmic Proof of the Lopsided Lovász Local Lemma (simplified and condensed into lecture notes)
An Algorithmic Proof of the Lopsided Lovász Local Lemma (simplified and condensed into lecture notes) Nicholas J. A. Harvey University of British Columbia Vancouver, Canada nickhar@cs.ubc.ca Jan Vondrák
More informationP P P NP-Hard: L is NP-hard if for all L NP, L L. Thus, if we could solve L in polynomial. Cook's Theorem and Reductions
Summary of the previous lecture Recall that we mentioned the following topics: P: is the set of decision problems (or languages) that are solvable in polynomial time. NP: is the set of decision problems
More informationApproximation Algorithms
Approximation Algorithms Chapter 26 Semidefinite Programming Zacharias Pitouras 1 Introduction LP place a good lower bound on OPT for NP-hard problems Are there other ways of doing this? Vector programs
More informationarxiv: v1 [cs.ds] 8 Dec 2016
A CONSTRUCTIVE ALGORITHM FOR THE LOVÁSZ LOCAL LEMMA ON PERMUTATIONS 1 DAVID G. HARRIS 2 AND ARAVIND SRINIVASAN 3 arxiv:1612.02663v1 [cs.ds] 8 Dec 2016 Abstract. While there has been significant progress
More informationChapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013
Chapter 2 Reductions and NP CS 573: Algorithms, Fall 2013 August 29, 2013 2.1 Reductions Continued 2.1.1 The Satisfiability Problem SAT 2.1.1.1 Propositional Formulas Definition 2.1.1. Consider a set of
More informationChapter 3 Deterministic planning
Chapter 3 Deterministic planning In this chapter we describe a number of algorithms for solving the historically most important and most basic type of planning problem. Two rather strong simplifying assumptions
More informationIndependence and chromatic number (and random k-sat): Sparse Case. Dimitris Achlioptas Microsoft
Independence and chromatic number (and random k-sat): Sparse Case Dimitris Achlioptas Microsoft Random graphs W.h.p.: with probability that tends to 1 as n. Hamiltonian cycle Let τ 2 be the moment all
More informationComplexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München
Complexity Theory Jörg Kreiker Chair for Theoretical Computer Science Prof. Esparza TU München Summer term 2010 Lecture 5 NP-completeness (2) 3 Cook-Levin Teaser A regular expression over {0, 1} is defined
More informationABSTRACT THE LOVÁSZ LOCAL LEMMA. Dissertation directed by: Professor Aravind Srinivasan, Department of Computer Science
ABSTRACT Title of Dissertation ALGORITHMS AND GENERALIZATIONS FOR THE LOVÁSZ LOCAL LEMMA David G. Harris, Doctor of Philosophy, 2015 Dissertation directed by: Professor Aravind Srinivasan, Department of
More informationDetermine the size of an instance of the minimum spanning tree problem.
3.1 Algorithm complexity Consider two alternative algorithms A and B for solving a given problem. Suppose A is O(n 2 ) and B is O(2 n ), where n is the size of the instance. Let n A 0 be the size of the
More informationComputability and Complexity Theory: An Introduction
Computability and Complexity Theory: An Introduction meena@imsc.res.in http://www.imsc.res.in/ meena IMI-IISc, 20 July 2006 p. 1 Understanding Computation Kinds of questions we seek answers to: Is a given
More informationA CONSTRUCTIVE ALGORITHM FOR THE LOVÁSZ LOCAL LEMMA ON PERMUTATIONS 1
A CONSTRUCTIVE ALGORITHM FOR THE LOVÁSZ LOCAL LEMMA ON PERMUTATIONS 1 DAVID G. HARRIS 2 AND ARAVIND SRINIVASAN 3 Abstract. While there has been significant progress on algorithmic aspects of the Lovász
More informationA An Overview of Complexity Theory for the Algorithm Designer
A An Overview of Complexity Theory for the Algorithm Designer A.1 Certificates and the class NP A decision problem is one whose answer is either yes or no. Two examples are: SAT: Given a Boolean formula
More informationAsymptotic Polynomial-Time Approximation (APTAS) and Randomized Approximation Algorithms
Approximation Algorithms Asymptotic Polynomial-Time Approximation (APTAS) and Randomized Approximation Algorithms Jens Egeblad November 29th, 2006 Agenda First lesson (Asymptotic Approximation): Bin-Packing
More informationA Collection of Problems in Propositional Logic
A Collection of Problems in Propositional Logic Hans Kleine Büning SS 2016 Problem 1: SAT (respectively SAT) Instance: A propositional formula α (for SAT in CNF). Question: Is α satisfiable? The problems
More informationAverage-case Analysis for Combinatorial Problems,
Average-case Analysis for Combinatorial Problems, with s and Stochastic Spanning Trees Mathematical Sciences, Carnegie Mellon University February 2, 2006 Outline Introduction 1 Introduction Combinatorial
More informationLecture: New Constructive Aspects of the Lovász Local Lemma, and their Applications June 15, 2011
Approximation Algorithms Workshop June 13-17, 2011, Princeton Lecture: New Constructive Aspects of the Lovász Local Lemma, and their Applications June 15, 2011 Aravind Srinivasan Scribe: Ioana Bercea 1
More informationNP-Complete Problems. More reductions
NP-Complete Problems More reductions Definitions P: problems that can be solved in polynomial time (typically in n, size of input) on a deterministic Turing machine Any normal computer simulates a DTM
More informationAlgorithms for Fundamental Problems in Computer Networks
Algorithms for Fundamental Problems in Computer Networks by Hsin-Hao Su A dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy (Computer Science and
More informationClause Shortening Combined with Pruning Yields a New Upper Bound for Deterministic SAT Algorithms
Clause Shortening Combined with Pruning Yields a New Upper Bound for Deterministic SAT Algorithms Evgeny Dantsin,EdwardA.Hirsch 2,, and Alexander Wolpert Roosevelt University, 430 S. Michigan Av., Chicago,
More information