Outline of this Chapter

Size: px
Start display at page:

Download "Outline of this Chapter"

Transcription

1 Outline of this Chapter Problems in DP Structure and Properties of the Boolean Hierarchy over NP Exact Graph Colorability J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 1 / 45

2 Problems in DP Reminder: Directed Hamilton Circuit Definition Directed Hamilton Circuit (DHC): Given: A directed graph G =(V(G),E(G)). Question: Does there exist a Hamilton cycle in G, i.e., a sequence (v 1,v 2,...,v n ), v i V(G), n= V(G), such that (v n,v 1 ) E(G) and (v i,v i+1 ) E(G) for 1 i <n? Theorem DHC is NP-complete. Proof: Has been presented in Kryptokomplexität I. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 2 / 45

3 Problems in DP Reminder: Hamilton Circuit Definition Hamilton Circuit (HC): Given: An undirected graph G =(V(G),E(G)). Question: Does there exist a Hamilton cycle in G, i.e., a sequence (v 1,v 2,...,v n ), v i V(G), n= V(G), such that {v n,v 1 } E(G) and {v i,v i+1 } E(G) for 1 i <n? Theorem HC is NP-complete. Proof: (Kryptokomplexität I.) Hint: Reduction from DHC. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 3 / 45

4 Problems in DP Reminder: Traveling Salesperson Problem Definition Traveling Salesperson Problem (TSP): Given: A complete undirected graph K n =(V,E), a cost function c :E N, and k N. Question: Does there exist a Hamilton cycle in K n such that the sum of the edge costs is at most k? Theorem TSP is NP-complete. Proof: TSP NP is easy to see. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 4 / 45

5 Problems in DP Reminder: TSP is NP-complete TSP is NP-hard: We show HC p mtsp. Given an undirected graph G =(V(G),E(G)) with V(G)={v 1,v 2,...,v n }, define f(g)=(k n,c,n), where K n =(V,E), V ={1,2,...,n}, and for each edge e ={i,j} of K n : 1 if {v i,v j } E(G) c({i,j})= 2 otherwise. Clearly, G HC if and only if f(g) TSP. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 5 / 45

6 Problems in DP Optimization and Search Variants of TSP Definition MinTSP: Given: A complete undirected graph K n =(V,E) and a cost function c :E N. Output: The minimum cost of a Hamilton cycle in K n with respect to c. SearchTSP: Given: A complete undirected graph K n =(V,E) and a cost function c :E N. Output: A Hamilton cycle in K n having minimum cost with respect to c. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 6 / 45

7 Problems in DP Exact Variant of the Traveling Salesperson Problem Definition Exact Traveling Salesperson Problem (Exact-TSP): Given: A complete undirected graph K n =(V,E), a cost function c :E N, and k N. Question: Is it true that tsp(k n,c)=k, where tsp(k n,c) denotes the length of an optimal tour in (K n,c)? J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 7 / 45

8 Problems in DP Exact Variant of the Traveling Salesperson Problem Fact Exact-TSP is NP-hard. Proof: HC p mexact-tsp can be shown with the same reduction f(g)=(k n,c,n), where K n =(V,E) and V ={1,2,...,n}, as in the previous proof: G HC if and only if tsp(k n,c)=n, which proves the fact. Question: Is it true that Exact-TSP NP? J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 8 / 45

9 Problems in DP Exact Variant of the Traveling Salesperson Problem Observation: Exact-TSP can be written as: Exact-TSP = {(K n,c,k) and tsp(kn,c)=k} = {(K n,c,k) and tsp(kn,c) k} {(K n,c,k) and tsp(kn,c) k} Note that: {(K n,c,k) and tsp(k n,c) k} is in NP and {(K n,c,k) and tsp(kn,c) k} is in conp. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 9 / 45

10 Problems in DP DP: Difference NP Definition DP = {L L=A B and A NP and B conp} = {L L=A B and A,B NP}. Lemma DP = {L L=L 1 L 2 and L 1,L 2 NP and L 2 L 1 }. Proof: See blackboard. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 10 / 45

11 Problems in DP Exact Variants of Other NP-complete Problems Analogously to Exact-TSP, exact variants can be defined for many NP-complete problems: Exact Vertex Cover, Exact Independent Set, Exact Clique, Exact Dominating Set, Exact-k-Color, J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 11 / 45

12 Problems in DP SAT-UNSAT Definition SAT-UNSAT: Given: A pair (H,H ) of boolean formulas in 3-CNF. Question: Is it true that H SAT and H SAT? Theorem SAT-UNSAT is DP-complete. Proof: See blackboard. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 12 / 45

13 Problems in DP Exact Independent Set Definition Exact Independent Set (XIS): Given: An undirected graph G =(V,E) and k N. Question: Is it true that mis(g)=k, where mis(g) denotes the size of a maximum independent set in G? Theorem Exact Independent Set is DP-complete. Proof: See blackboard. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 13 / 45

14 Problems in DP Critical Problems in DP Minimal-3-UNSAT: Given: A boolean formula ϕ in 3-CNF. Question: Is it true that ϕ is unsatisfiable, yet removing any clause from ϕ makes it satisfiable? Minimal-3-Uncolorability: Given: An undirected graph G. Question: Is it true that G is not 3-colorable, yet removing any one of its vertices makes it 3-colorable? Maximal Non-Hamilton Circuit: Given: An undirected graph G. Question: Is it true that G has no Hamilton cycle, yet adding any one edge to G creates one? J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 14 / 45

15 Problems in DP Critical Problems in DP Papadimitriou & Yannakakis (JCSS 1984) introduced DP to capture the complexity of problems that are known to be NP-hard or conp-hard, but not known to be in NP or conp. Critical problems tend to be extremely elusive and very hard to tackle. Papadimitriou & Yannakakis (JCSS 1984) write: This difficulty seems to reflect the extremely delicate and deep structure of critical problems too delicate to sustain any of the known reduction methods. One way to understand this is that critical graphs is usually the object of hard theorems. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 15 / 45

16 Problems in DP Critical Problems in DP Theorem (Papadimitriou & Wolfe (JCSS 1988)) Minimal-3-UNSAT is DP-complete. without proof Theorem (Cai & Meyer (SICOMP 1987)) Minimal-3-Uncolorability is DP-complete. without proof Theorem (Papadimitriou & Wolfe (JCSS 1988)) Maximal Non-Hamilton Circuit is DP-complete. without proof J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 16 / 45

17 Problems in DP Unique Solution Problems in DP Definition Unique SAT: Given: A boolean formula ϕ. Question: Does there exist a unique satisfying assignment for ϕ? Theorem Unique SAT is conp-hard and in DP. Proof: Excercise. Remark: It is still open whether Unique SAT is DP-complete. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 17 / 45

18 Structure and Properties of the Boolean Hierarchy over NP Boolean Hierarchy over NP Definition (Boolean Hierarchy over NP) For classes C and D of sets, define: C D C D = {A B A C and B D}; = {A B A C and B D}. The boolean hierarchy over NP is inductively defined by: BH 0 (NP) = P, BH 1 (NP) = NP, BH 2 (NP) = NP conp, BH k (NP) = BH k 2 (NP) BH 2 (NP) for each k 3, and BH(NP) = BH k (NP). k 0 J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 18 / 45

19 Structure and Properties of the Boolean Hierarchy over NP Boolean Hierarchy over NP Theorem (Cai et al. (SICOMP 1988)) For each k 1, BH k (NP)= A 1 A 2 A k A 1,A 2,...,A k NP and A k A k 1 A 1, where we agree by convention that parentheses may be omitted in such set differences: A 1 A 2 A k 1 A k =A 1 (A 2 ( (A k 1 A k ) )). without proof J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 19 / 45

20 Structure and Properties of the Boolean Hierarchy over NP Boolean Hierarchy over NP (Hasse Diagram) BH(NP).. cobh 3 (NP) BH 3 (NP) codp=cobh 2 (NP) BH 2 (NP)=DP conp=cobh 1 (NP) BH 1 (NP)=NP P=BH 0 (NP) J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 20 / 45

21 Structure and Properties of the Boolean Hierarchy over NP Boolean Hierarchy over NP (Venn Diagram). cobh 2 BH(NP) cobh 1 DP NP P BH 1 BH 2 conp codp. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 21 / 45

22 Structure and Properties of the Boolean Hierarchy over NP Boolean Hierarchy over NP: Inclusion Structure Theorem For each k 0, BH k (NP) BH k+1 (NP) and cobh k (NP) cobh k+1 (NP) and, hence, BH k (NP) cobh k (NP) BH k+1 (NP). Proof: See blackboard. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 22 / 45

23 Structure and Properties of the Boolean Hierarchy over NP Boolean Hierarchy over NP: Upward Collapse Theorem 1 For each k 0, if BH k (NP)=BH k+1 (NP), then BH k (NP)=coBH k (NP)=BH k+1 (NP)=coBH k+1 (NP)= =BH(NP). 2 For each k 1, if BH k (NP)=coBH k (NP), then BH k (NP)=coBH k (NP)=BH k+1 (NP)=coBH k+1 (NP)= =BH(NP). Proof: See blackboard. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 23 / 45

24 Structure and Properties of the Boolean Hierarchy over NP Boolean Hierarchy over NP: Complete Problems Definition D k -SAT: Given: A tuple (H 1,H 2,...,H k ) of boolean formulas in CNF. Question: Does there exist an i such that H 1,...,H 2i 1 SAT and H 2i,...,H k SAT? Remark: Special cases: k =1: D 1 -SAT=SAT is NP-complete. k =2: D 2 -SAT=SAT-UNSAT is DP-complete. Theorem For each k 1, D k -SAT is BH k (NP)-complete. without proof J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 24 / 45

25 Structure and Properties of the Boolean Hierarchy over NP Boolean Hierarchy over NP: Complete Problems Definition D k -Independent Set (D k -IS): Given: An undirected graph G =(V,E) and a tuple (m 1,m 2,...,m k ) of positive integers. Question: Is it true that: if k is even then 0<m 1 m 2 <m 3 m 4 < <m k 1 m k < V and mis(g) [m 1,m 2 ] [m 3,m 4 ] [m k 1,m k ]? if k is odd then 0<m 1 m 2 <m 3 m 4 < m k 1 <m k V and mis(g) [m 1,m 2 ] [m 3,m 4 ] [m k, V ]? J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 25 / 45

26 Structure and Properties of the Boolean Hierarchy over NP Boolean Hierarchy over NP: Complete Problems Remark: Special cases: k =1: D 1 -IS = IS is NP-complete. k =2 and m 1 =m 2 : D 2 -IS = XIS is DP-complete. Theorem For each k 1, D k -IS is BH k (NP)-complete. without proof J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 26 / 45

27 Structure and Properties of the Boolean Hierarchy over NP Wagner s Tool for Proving DP-Hardness Lemma (Wagner, TCS 1987) Let A be some NP-complete problem and let B be an arbitrary problem. If there exists a polynomial-time computable function f such that, for all input strings x 1 and x 2 for which x 2 A implies x 1 A, we have that (x 1 A x 2 A) f(x 1,x 2 ) B, then B is DP-hard. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 27 / 45

28 Structure and Properties of the Boolean Hierarchy over NP Wagner s Tool for Proving DP-Hardness Lemma (Wagner, TCS 1987) Let A be some NP-complete problem and let B be an arbitrary problem. If there exists a polynomial-time computable function f such that, for all input strings x 1 and x 2 for which x 2 A implies x 1 A, we have that then B is DP-hard. (x 1 A x 2 A) f(x 1,x 2 ) B, Has been applied to prove DP-completeness of, e.g., XIS, Exact-7-Color, etc. (Wagner, TCS 1987), Exact-4-Color (Rothe, IPL 2006). J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 27 / 45

29 Structure and Properties of the Boolean Hierarchy over NP Wagner s Tool for Proving DP-Hardness Lemma (Wagner, TCS 1987) Let A be some NP-complete problem and let B be an arbitrary problem. If there exists a polynomial-time computable function f such that, for all input strings x 1 and x 2 for which x 2 A implies x 1 A, we have that then B is DP-hard. (x 1 A x 2 A) f(x 1,x 2 ) B, Has been applied to prove DP-completeness of, e.g., XIS, Exact-7-Color, etc. (Wagner, TCS 1987), Exact-4-Color (Rothe, IPL 2006). Analogs for all levels of the boolean hierarchy and P NP, e.g., Dodgson Winner is P NP -complete (Hemaspaandra et al., J.ACM 1997) J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 27 / 45

30 Structure and Properties of the Boolean Hierarchy over NP Wagner s Tool for Proving BH 2k (NP)-Hardness Lemma (Wagner, TCS 1987) Let A be some NP-complete problem, B be an arbitrary problem, and k 1 a fixed integer. If there exists a polynomial-time computable function f such that, for all input strings x 1,x 2,...,x 2k for which ( j :1 j <2k) [x j+1 A x j A], we have that {i xi A} is odd f(x 1,x 2,...,x 2k ) B, then B is BH 2k (NP)-hard. Proof: See blackboard. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 28 / 45

31 Structure and Properties of the Boolean Hierarchy over NP Wagner s Tool for Proving BH 2k 1 (NP)/coBH 2k (NP)/coBH 2k 1 (NP)-Hardness Remark: Replacing 2k by 2k 1 in the lemma above yields an analogous criterium for BH 2k 1 (NP)-Hardness. Replacing odd by even yields an analogous criterium for cobh 2k (NP)- and cobh 2k 1 (NP)-Hardness, respectively. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 29 / 45

32 Exact Graph Colorability Reminder: Graph Colorability Definition Let G =(V(G),E(G)) be an undirected graph. A k-coloring of G is a mapping V(G) {1,2,...,k}. A k-coloring ψ of G is called legal if for any two vertices x and y in V(G), if {x,y} E(G) then ψ(x) ψ(y). The chromatic number of G, denoted by χ(g), is the smallest number k such that G is legally k-colorable. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 30 / 45

33 Exact Graph Colorability Reminder: Graph Colorability Definition For fixed k 1, define k-color={g G is a graph with χ(g) k}. Example: Figure: A 3-colorable graph J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 31 / 45

34 Exact Graph Colorability Exact Graph Colorability Definition For fixed k 1, define Exact-k-Color={G G is a graph with χ(g)=k}. Example: Figure: A graph in Exact-3-Color (left) and in Exact-4-Color (right) J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 32 / 45

35 Exact Graph Colorability Generalized Exact Graph Colorability Definition For fixed j 1, let M j N be a given set of j non-consecutive integers and define Exact-M j -Color={G G is a graph with χ(g) Mj }. Remark: For j =1 with M 1 ={k}, we write Exact-k-Color instead of Exact-M 1 -Color=Exact-{k}-Color. Theorem (Wagner, TCS 1987) For fixed k 1, let M k ={6k+1,6k+3,...,8k 1}. Exact-M k -Color is BH 2k (NP)-complete. In particular, for k =1 (i.e., M 1 ={7}), Exact-7-Color is DP-complete. without proof J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 33 / 45

36 Exact Graph Colorability Generalized Exact Graph Colorability Lemma There exists a polynomial-time computable function σ that p m-reduces 3-SAT to 3-Color and satisfies the following two properties: ϕ 3-SAT χ(σ(ϕ))=3; (1) ϕ 3-SAT χ(σ(ϕ))=4. (2) Proof: Use standard reduction 3-SAT p m3-color (next slides). Lemma (Guruswami and Khanna, CCC-2000) There exists a polynomial-time computable function ρ that p m-reduces 3-SAT to 3-Color and satisfies the following two properties: ϕ 3-SAT χ(ρ(ϕ))=3; (3) ϕ 3-SAT χ(ρ(ϕ))=5. (4) J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 34 / 45

37 Exact Graph Colorability Reminder: 3-Color is NP-complete Fact 2-Color is in P. without proof Theorem 3-Color is NP-complete. Proof: 1 3-Color NP is easy to see. 2 3-Color is NP-hard: We show 3-SAT p m3-color. Let ϕ(x 1,x 2,...,x n )=C 1 C 2 C m be a given 3-SAT instance with exactly three literals per clause. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 35 / 45

38 Exact Graph Colorability Reminder: 3-Color is NP-complete Define a reduction σ mapping ϕ to the graph G constructed as follows. The vertex set of G is defined by V(G) = {v 1,v 2,v 3 } {x i, x i 1 i n} {y j,k 1 j m and 1 k 6}, where the x i and x i are vertices representing the literals x i and their negations x i, respectively. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 36 / 45

39 Exact Graph Colorability Reminder: 3-Color is NP-complete The edge set of G is defined by E(G) = {{v 1,v 2 },{v 2,v 3 },{v 1,v 3 }} {{x i, x i } 1 i n} {{v 3,x i },{v 3, x i } 1 i n} {{a j,y j,1 },{b j,y j,2 },{c j,y j,3 } 1 j m} {{v 2,y j,6 },{v 3,y j,6 } 1 j m} {{y j,1,y j,2 },{y j,1,y j,4 },{y j,2,y j,4 } 1 j m} {{y j,3,y j,5 },{y j,3,y j,6 },{y j,5,y j,6 } 1 j m} {{y j,4,y j,5 } 1 j m}, where a j,b j,c j 1 i n{x i, x i } are vertices representing the literals occurring in clause C j =(a j b j c j ). J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 37 / 45

40 Exact Graph Colorability Reminder: Clause Graph in 3-SAT p m3-color a y 1 y 4 y 5 b y 2 y 6 c y 3 Figure: Graph H for clause C =(a b c) in 3-SAT p m3-color J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 38 / 45

41 Exact Graph Colorability Reminder: Properties of H in 3-SAT p m3-color 1 Vertices x i and x i corresponding to the literals x i and x i are legally colored 1 ( true ) or 2 ( false ). 2 Any coloring of the vertices a, b, and c that assigns color 1 to one of a, b, and c can be extended to a legal 3-coloring of H that assigns color 1 to y 6. Thus, if ϕ 3-SAT then G 3-Color. 3 If ψ is a legal 3-coloring of H with ψ(a)=ψ(b)=ψ(c)=i, then ψ(y 6 )=i. Thus, if ϕ 3-SAT then G 3-Color. It follows that ϕ 3-SAT σ(ϕ)=g 3-Color Clearly, reduction σ is polynomial-time computable. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 39 / 45

42 Exact Graph Colorability Guruswami Khanna Reduction: Sketch r i t i,1 s i t i,2 t i,3 Figure: Tree-like structure S i in the Guruswami Khanna reduction J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 40 / 45

43 Exact Graph Colorability Guruswami Khanna Reduction: Sketch Figure: Basic template in the Guruswami Khanna reduction J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 41 / 45

44 Exact Graph Colorability Guruswami Khanna Reduction: Sketch (111) (223) (332) (222) (331) (113) r i (333) (112) (221) (123) (132) (312) (231) (213) (321) (111) (233) (322) (222) (311) (133) t i,1 (111) (323) (232) (222) (131) (313) s i (333) (122) (211) (333) (212) (121) Figure: Connection pattern between the templates of a tree-like structure J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 42 / 45

45 Exact Graph Colorability Guruswami Khanna Reduction: Sketch Figure: Gadget connecting two leaves of the same row kind J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 43 / 45

46 Exact Graph Colorability Guruswami Khanna Reduction: Sketch Figure: Gadget connecting two leaves of the different rows kind J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 44 / 45

47 Exact Graph Colorability Exact-4-Color is DP-complete Theorem (Rothe, IPL 2001) For fixed k 1, let M k ={3k+1,3k+3,...,5k 1}. Exact-M k -Color is BH 2k (NP)-complete. In particular, for k =1 (i.e., M 1 ={4}), Exact-4-Color is DP-complete. Proof: See blackboard. J. Rothe (HHU Düsseldorf) Komplexitätstheorie II 45 / 45

Exact complexity of Exact-Four-Colorability

Exact complexity of Exact-Four-Colorability Information Processing Letters 87 (2003) 7 12 www.elsevier.com/locate/ipl Exact complexity of Exact-Four-Colorability Jörg Rothe Abteilung für Informatik, Heinrich-Heine-Universität Düsseldorf, 40225 Düsseldorf,

More information

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity 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 information

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

Outline. 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 information

NP and Computational Intractability

NP 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 information

A.Antonopoulos 18/1/2010

A.Antonopoulos 18/1/2010 Class DP Basic orems 18/1/2010 Class DP Basic orems 1 Class DP 2 Basic orems Class DP Basic orems TSP Versions 1 TSP (D) 2 EXACT TSP 3 TSP COST 4 TSP (1) P (2) P (3) P (4) DP Class Class DP Basic orems

More information

NP-Complete Reductions 2

NP-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 information

NP Complete Problems. COMP 215 Lecture 20

NP Complete Problems. COMP 215 Lecture 20 NP Complete Problems COMP 215 Lecture 20 Complexity Theory Complexity theory is a research area unto itself. The central project is classifying problems as either tractable or intractable. Tractable Worst

More information

Introduction to Advanced Results

Introduction 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 information

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

On the Hardness of Satisfiability with Bounded Occurrences in the Polynomial-Time Hierarchy On the Hardness of Satisfiability with Bounded Occurrences in the Polynomial-Time Hierarchy Ishay Haviv Oded Regev Amnon Ta-Shma March 12, 2007 Abstract In 1991, Papadimitriou and Yannakakis gave a reduction

More information

SAT, Coloring, Hamiltonian Cycle, TSP

SAT, 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 information

Polynomial-Time Reductions

Polynomial-Time Reductions Reductions 1 Polynomial-Time Reductions Classify Problems According to Computational Requirements Q. Which problems will we be able to solve in practice? A working definition. [von Neumann 1953, Godel

More information

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

Complete problems for classes in PH, The Polynomial-Time Hierarchy (PH) oracle is like a subroutine, or function in Oracle Turing Machines Nondeterministic OTM defined in the same way (transition relation, rather than function) oracle is like a subroutine, or function in your favorite PL but each call counts as single

More information

NP-COMPLETE PROBLEMS. 1. Characterizing NP. Proof

NP-COMPLETE PROBLEMS. 1. Characterizing NP. Proof T-79.5103 / Autumn 2006 NP-complete problems 1 NP-COMPLETE PROBLEMS Characterizing NP Variants of satisfiability Graph-theoretic problems Coloring problems Sets and numbers Pseudopolynomial algorithms

More information

The Complexity of Computing Minimal Unidirectional Covering Sets

The Complexity of Computing Minimal Unidirectional Covering Sets The Complexity of Computing Minimal Unidirectional Covering Sets Dorothea Baumeister a, Felix Brandt b, Felix Fischer c, Jan Hoffmann d, Jörg Rothe a a Institut für Informatik, Heinrich-Heine-Universität

More information

Hardness of the Covering Radius Problem on Lattices

Hardness of the Covering Radius Problem on Lattices Hardness of the Covering Radius Problem on Lattices Ishay Haviv Oded Regev June 6, 2006 Abstract We provide the first hardness result for the Covering Radius Problem on lattices (CRP). Namely, we show

More information

CS 583: Algorithms. NP Completeness Ch 34. Intractability

CS 583: Algorithms. NP Completeness Ch 34. Intractability CS 583: Algorithms NP Completeness Ch 34 Intractability Some problems are intractable: as they grow large, we are unable to solve them in reasonable time What constitutes reasonable time? Standard working

More information

Lecture 13, Fall 04/05

Lecture 13, Fall 04/05 Lecture 13, Fall 04/05 Short review of last class NP hardness conp and conp completeness Additional reductions and NP complete problems Decision, search, and optimization problems Coping with NP completeness

More information

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

CS154, Lecture 15: Cook-Levin Theorem SAT, 3SAT CS154, Lecture 15: Cook-Levin Theorem SAT, 3SAT Definition: A language B is NP-complete if: 1. B NP 2. Every A in NP is poly-time reducible to B That is, A P B When this is true, we say B is NP-hard On

More information

NP-complete Problems

NP-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 information

NP-Complete Problems. More reductions

NP-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 information

Theory of Computer Science. Theory of Computer Science. E5.1 Routing Problems. E5.2 Packing Problems. E5.3 Conclusion.

Theory of Computer Science. Theory of Computer Science. E5.1 Routing Problems. E5.2 Packing Problems. E5.3 Conclusion. Theory of Computer Science May 31, 2017 E5. Some NP-Complete Problems, Part II Theory of Computer Science E5. Some NP-Complete Problems, Part II E5.1 Routing Problems Malte Helmert University of Basel

More information

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

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP CS 301 - Lecture 29 P, NP, and NP-Completeness Fall 2008 Review Languages and Grammars Alphabets, strings, languages Regular Languages Deterministic Finite and Nondeterministic Automata Equivalence of

More information

Lecture 7: Polynomial time hierarchy

Lecture 7: Polynomial time hierarchy Computational Complexity Theory, Fall 2010 September 15 Lecture 7: Polynomial time hierarchy Lecturer: Kristoffer Arnsfelt Hansen Scribe: Mads Chr. Olesen Recall that adding the power of alternation gives

More information

Algorithms, Lecture 3 on NP : Nondeterminis7c Polynomial Time

Algorithms, Lecture 3 on NP : Nondeterminis7c Polynomial Time Algorithms, Lecture 3 on NP : Nondeterminis7c Polynomial Time Last week: Defined Polynomial Time Reduc7ons: Problem X is poly 7me reducible to Y X P Y if can solve X using poly computa7on and a poly number

More information

Lecture 15 - NP Completeness 1

Lecture 15 - NP Completeness 1 CME 305: Discrete Mathematics and Algorithms Instructor: Professor Aaron Sidford (sidford@stanford.edu) February 29, 2018 Lecture 15 - NP Completeness 1 In the last lecture we discussed how to provide

More information

Limits 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 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 information

1. Introduction Recap

1. Introduction Recap 1. Introduction Recap 1. Tractable and intractable problems polynomial-boundness: O(n k ) 2. NP-complete problems informal definition 3. Examples of P vs. NP difference may appear only slightly 4. Optimization

More information

Complexity, P and NP

Complexity, P and NP Complexity, P and NP EECS 477 Lecture 21, 11/26/2002 Last week Lower bound arguments Information theoretic (12.2) Decision trees (sorting) Adversary arguments (12.3) Maximum of an array Graph connectivity

More information

Classes of Problems. CS 461, Lecture 23. NP-Hard. Today s Outline. We can characterize many problems into three classes:

Classes of Problems. CS 461, Lecture 23. NP-Hard. Today s Outline. We can characterize many problems into three classes: Classes of Problems We can characterize many problems into three classes: CS 461, Lecture 23 Jared Saia University of New Mexico P is the set of yes/no problems that can be solved in polynomial time. Intuitively

More information

The Complexity of Computing Minimal Unidirectional Covering Sets

The Complexity of Computing Minimal Unidirectional Covering Sets The Complexity of Computing Minimal Unidirectional Covering Sets Dorothea Baumeister Institut für Informatik Heinrich-Heine-Universität Düsseldorf 40225 Düsseldorf, Germany Felix Fischer Institut für Informatik

More information

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2)

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2) Algorithms and Theory of Computation Lecture 22: NP-Completeness (2) Xiaohui Bei MAS 714 November 8, 2018 Nanyang Technological University MAS 714 November 8, 2018 1 / 20 Set Cover Set Cover Input: a set

More information

Computational Complexity and Intractability: An Introduction to the Theory of NP. Chapter 9

Computational Complexity and Intractability: An Introduction to the Theory of NP. Chapter 9 1 Computational Complexity and Intractability: An Introduction to the Theory of NP Chapter 9 2 Objectives Classify problems as tractable or intractable Define decision problems Define the class P Define

More information

NP-completeness. Chapter 34. Sergey Bereg

NP-completeness. Chapter 34. Sergey Bereg NP-completeness Chapter 34 Sergey Bereg Oct 2017 Examples Some problems admit polynomial time algorithms, i.e. O(n k ) running time where n is the input size. We will study a class of NP-complete problems

More information

Algorithms and Complexity Theory. Chapter 8: Introduction to Complexity. Computer Science - Durban - September 2005

Algorithms and Complexity Theory. Chapter 8: Introduction to Complexity. Computer Science - Durban - September 2005 Algorithms and Complexity Theory Chapter 8: Introduction to Complexity Jules-R Tapamo Computer Science - Durban - September 2005 Contents 1 Introduction 2 1.1 Dynamic programming...................................

More information

A Collection of Problems in Propositional Logic

A 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 information

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

CS 301: Complexity of Algorithms (Term I 2008) Alex Tiskin Harald Räcke. Hamiltonian Cycle. 8.5 Sequencing Problems. Directed Hamiltonian Cycle 8.5 Sequencing Problems Basic genres. Packing problems: SET-PACKING, INDEPENDENT SET. Covering problems: SET-COVER, VERTEX-COVER. Constraint satisfaction problems: SAT, 3-SAT. Sequencing problems: HAMILTONIAN-CYCLE,

More information

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Propositional 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 information

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1 NP CS 320, Fall 2017 Dr. Geri Georg, Instructor georg@colostate.edu 320 NP 1 NP Complete A class of problems where: No polynomial time algorithm has been discovered No proof that one doesn t exist 320

More information

Chapter 34: NP-Completeness

Chapter 34: NP-Completeness Graph Algorithms - Spring 2011 Set 17. Lecturer: Huilan Chang Reference: Cormen, Leiserson, Rivest, and Stein, Introduction to Algorithms, 2nd Edition, The MIT Press. Chapter 34: NP-Completeness 2. Polynomial-time

More information

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

8. 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 information

Polynomial-time Reductions

Polynomial-time Reductions Polynomial-time Reductions Disclaimer: Many denitions in these slides should be taken as the intuitive meaning, as the precise meaning of some of the terms are hard to pin down without introducing the

More information

NP and NP-Completeness

NP and NP-Completeness CSC 364S Notes University of Toronto, Spring, 2003 NP NP and NP-Completeness NP is a class of languages that contains all of P, but which most people think also contains many languages that aren t in P.

More information

Essential facts about NP-completeness:

Essential 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 information

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

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65 Undecidable Problems Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, 2018 1/ 65 Algorithmically Solvable Problems Let us assume we have a problem P. If there is an algorithm solving

More information

P 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

P 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 information

CS21 Decidability and Tractability

CS21 Decidability and Tractability CS21 Decidability and Tractability Lecture 20 February 23, 2018 February 23, 2018 CS21 Lecture 20 1 Outline the complexity class NP NP-complete probelems: Subset Sum NP-complete problems: NAE-3-SAT, max

More information

Approximation Preserving Reductions

Approximation Preserving Reductions Approximation Preserving Reductions - Memo Summary - AP-reducibility - L-reduction technique - Complete problems - Examples: MAXIMUM CLIQUE, MAXIMUM INDEPENDENT SET, MAXIMUM 2-SAT, MAXIMUM NAE 3-SAT, MAXIMUM

More information

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

CSCI3390-Lecture 17: A sampler of NP-complete problems CSCI3390-Lecture 17: A sampler of NP-complete problems 1 List of Problems We now know that if L is any problem in NP, that L P SAT, and thus SAT is NP-hard. Since SAT is also in NP we find that SAT is

More information

Show that the following problems are NP-complete

Show 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 information

VIII. NP-completeness

VIII. NP-completeness VIII. NP-completeness 1 / 15 NP-Completeness Overview 1. Introduction 2. P and NP 3. NP-complete (NPC): formal definition 4. How to prove a problem is NPC 5. How to solve a NPC problem: approximate algorithms

More information

Algorithms. NP -Complete Problems. Dong Kyue Kim Hanyang University

Algorithms. NP -Complete Problems. Dong Kyue Kim Hanyang University Algorithms NP -Complete Problems Dong Kyue Kim Hanyang University dqkim@hanyang.ac.kr The Class P Definition 13.2 Polynomially bounded An algorithm is said to be polynomially bounded if its worst-case

More information

Polynomial-time reductions. We have seen several reductions:

Polynomial-time reductions. We have seen several reductions: Polynomial-time reductions We have seen several reductions: Polynomial-time reductions Informal explanation of reductions: We have two problems, X and Y. Suppose we have a black-box solving problem X in

More information

More NP-Complete Problems

More NP-Complete Problems CS 473: Algorithms, Spring 2018 More NP-Complete Problems Lecture 23 April 17, 2018 Most slides are courtesy Prof. Chekuri Ruta (UIUC) CS473 1 Spring 2018 1 / 57 Recap NP: languages/problems that have

More information

Umans Complexity Theory Lectures

Umans Complexity Theory Lectures Umans Complexity Theory Lectures Lecture 12: The Polynomial-Time Hierarchy Oracle Turing Machines Oracle Turing Machine (OTM): Deterministic multitape TM M with special query tape special states q?, q

More information

Algorithms Design & Analysis. Approximation Algorithm

Algorithms Design & Analysis. Approximation Algorithm Algorithms Design & Analysis Approximation Algorithm Recap External memory model Merge sort Distribution sort 2 Today s Topics Hard problem Approximation algorithms Metric traveling salesman problem A

More information

NP-Complete Reductions 1

NP-Complete Reductions 1 x x x 2 x 2 x 3 x 3 x 4 x 4 CS 4407 2 22 32 Algorithms 3 2 23 3 33 NP-Complete Reductions Prof. Gregory Provan Department of Computer Science University College Cork Lecture Outline x x x 2 x 2 x 3 x 3

More information

8.5 Sequencing Problems

8.5 Sequencing Problems 8.5 Sequencing Problems Basic genres. Packing problems: SET-PACKING, INDEPENDENT SET. Covering problems: SET-COVER, VERTEX-COVER. Constraint satisfaction problems: SAT, 3-SAT. Sequencing problems: HAMILTONIAN-CYCLE,

More information

Graduate Algorithms CS F-21 NP & Approximation Algorithms

Graduate Algorithms CS F-21 NP & Approximation Algorithms Graduate Algorithms CS673-2016F-21 NP & Approximation Algorithms David Galles Department of Computer Science University of San Francisco 21-0: Classes of Problems Consider three problem classes: Polynomial

More information

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

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, Notes 22 for CS 170 UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, 2003 Notes 22 for CS 170 1 NP-completeness of Circuit-SAT We will prove that the circuit satisfiability

More information

Introduction to Complexity Theory. Bernhard Häupler. May 2, 2006

Introduction to Complexity Theory. Bernhard Häupler. May 2, 2006 Introduction to Complexity Theory Bernhard Häupler May 2, 2006 Abstract This paper is a short repetition of the basic topics in complexity theory. It is not intended to be a complete step by step introduction

More information

Computational Intractability 2010/4/15. Lecture 2

Computational Intractability 2010/4/15. Lecture 2 Computational Intractability 2010/4/15 Professor: David Avis Lecture 2 Scribe:Naoki Hatta 1 P and NP 1.1 Definition of P and NP Decision problem it requires yes/no answer. Example: X is a set of strings.

More information

Chapter 3: Proving NP-completeness Results

Chapter 3: Proving NP-completeness Results Chapter 3: Proving NP-completeness Results Six Basic NP-Complete Problems Some Techniques for Proving NP-Completeness Some Suggested Exercises 1.1 Six Basic NP-Complete Problems 3-SATISFIABILITY (3SAT)

More information

CSCI 1590 Intro to Computational Complexity

CSCI 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 information

Design and Analysis of Algorithms

Design and Analysis of Algorithms Design and Analysis of Algorithms CSE 5311 Lecture 25 NP Completeness Junzhou Huang, Ph.D. Department of Computer Science and Engineering CSE5311 Design and Analysis of Algorithms 1 NP-Completeness Some

More information

NP-Hardness reductions

NP-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 information

CSCI3390-Lecture 18: Why is the P =?NP Problem Such a Big Deal?

CSCI3390-Lecture 18: Why is the P =?NP Problem Such a Big Deal? CSCI3390-Lecture 18: Why is the P =?NP Problem Such a Big Deal? The conjecture that P is different from NP made its way on to several lists of the most important unsolved problems in Mathematics (never

More information

NP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch]

NP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch] NP-Completeness Andreas Klappenecker [based on slides by Prof. Welch] 1 Prelude: Informal Discussion (Incidentally, we will never get very formal in this course) 2 Polynomial Time Algorithms Most of the

More information

COMPLEXITY THEORY. Lecture 17: The Polynomial Hierarchy. TU Dresden, 19th Dec Markus Krötzsch Knowledge-Based Systems

COMPLEXITY THEORY. Lecture 17: The Polynomial Hierarchy. TU Dresden, 19th Dec Markus Krötzsch Knowledge-Based Systems COMPLEXITY THEORY Lecture 17: The Polynomial Hierarchy Markus Krötzsch Knowledge-Based Systems TU Dresden, 19th Dec 2017 Review: ATM vs. DTM Markus Krötzsch, 19th Dec 2017 Complexity Theory slide 2 of

More information

Correctness of Dijkstra s algorithm

Correctness of Dijkstra s algorithm Correctness of Dijkstra s algorithm Invariant: When vertex u is deleted from the priority queue, d[u] is the correct length of the shortest path from the source s to vertex u. Additionally, the value d[u]

More information

Theory of Computation Chapter 9

Theory of Computation Chapter 9 0-0 Theory of Computation Chapter 9 Guan-Shieng Huang May 12, 2003 NP-completeness Problems NP: the class of languages decided by nondeterministic Turing machine in polynomial time NP-completeness: Cook

More information

Lecture 4: NP and computational intractability

Lecture 4: NP and computational intractability Chapter 4 Lecture 4: NP and computational intractability Listen to: Find the longest path, Daniel Barret What do we do today: polynomial time reduction NP, co-np and NP complete problems some examples

More information

CS21 Decidability and Tractability

CS21 Decidability and Tractability CS21 Decidability and Tractability Lecture 18 February 16, 2018 February 16, 2018 CS21 Lecture 18 1 Outline the complexity class NP 3-SAT is NP-complete NP-complete problems: independent set, vertex cover,

More information

University of Washington March 21, 2013 Department of Computer Science and Engineering CSEP 521, Winter Exam Solution, Monday, March 18, 2013

University of Washington March 21, 2013 Department of Computer Science and Engineering CSEP 521, Winter Exam Solution, Monday, March 18, 2013 University of Washington March 21, 2013 Department of Computer Science and Engineering CSEP 521, Winter 2013 Exam Solution, Monday, March 18, 2013 Instructions: NAME: Closed book, closed notes, no calculators

More information

Lecture 18: More NP-Complete Problems

Lecture 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 information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 26 Computational Intractability Polynomial Time Reductions Sofya Raskhodnikova S. Raskhodnikova; based on slides by A. Smith and K. Wayne L26.1 What algorithms are

More information

Week 3: Reductions and Completeness

Week 3: Reductions and Completeness Computational Complexity Theory Summer HSSP 2018 Week 3: Reductions and Completeness Dylan Hendrickson MIT Educational Studies Program 3.1 Reductions Suppose I know how to solve some problem quickly. How

More information

CS/COE

CS/COE CS/COE 1501 www.cs.pitt.edu/~nlf4/cs1501/ P vs NP But first, something completely different... Some computational problems are unsolvable No algorithm can be written that will always produce the correct

More information

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition.

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition. Lecture #14: 0.0.1 NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition. 0.0.2 Preliminaries: Definition 1 n abstract problem Q is a binary relations on a set I of

More information

ECS122A Handout on NP-Completeness March 12, 2018

ECS122A Handout on NP-Completeness March 12, 2018 ECS122A Handout on NP-Completeness March 12, 2018 Contents: I. Introduction II. P and NP III. NP-complete IV. How to prove a problem is NP-complete V. How to solve a NP-complete problem: approximate algorithms

More information

CS Fall 2011 P and NP Carola Wenk

CS Fall 2011 P and NP Carola Wenk CS3343 -- Fall 2011 P and NP Carola Wenk Slides courtesy of Piotr Indyk with small changes by Carola Wenk 11/29/11 CS 3343 Analysis of Algorithms 1 We have seen so far Algorithms for various problems Running

More information

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

CSE 3500 Algorithms and Complexity Fall 2016 Lecture 25: November 29, 2016 CSE 3500 Algorithms and Complexity Fall 2016 Lecture 25: November 29, 2016 Intractable Problems There are many problems for which the best known algorithms take a very long time (e.g., exponential in some

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURES 30-31 NP-completeness Definition NP-completeness proof for CIRCUIT-SAT Adam Smith 11/3/10 A. Smith; based on slides by E. Demaine, C. Leiserson, S. Raskhodnikova,

More information

Lecture 19: NP-Completeness 1

Lecture 19: NP-Completeness 1 Lecture 19: NP-Completeness 1 Revised Sun May 25, 2003 Outline of this Lecture Polynomial-time reductions. CLRS pp.984-5 The class N PC. CLRS p. 986 Proving that problems are N PC. SAT, CLIQUE, INDEPENDENT

More information

Lecture 15: A Brief Look at PCP

Lecture 15: A Brief Look at PCP IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Basic Course on Computational Complexity Lecture 15: A Brief Look at PCP David Mix Barrington and Alexis Maciel August 4, 2000 1. Overview

More information

NP and Computational Intractability

NP 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 information

Intro to Theory of Computation

Intro to Theory of Computation Intro to Theory of Computation LECTURE 25 Last time Class NP Today Polynomial-time reductions Adam Smith; Sofya Raskhodnikova 4/18/2016 L25.1 The classes P and NP P is the class of languages decidable

More information

Topics in Complexity Theory

Topics in Complexity Theory Topics in Complexity Theory Announcements Final exam this Friday from 12:15PM-3:15PM Please let us know immediately after lecture if you want to take the final at an alternate time and haven't yet told

More information

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

6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch 6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch Today: More Complexity Theory Polynomial-time reducibility, NP-completeness, and the Satisfiability (SAT) problem Topics: Introduction

More information

NP-Complete problems

NP-Complete problems NP-Complete problems NP-complete problems (NPC): A subset of NP. If any NP-complete problem can be solved in polynomial time, then every problem in NP has a polynomial time solution. NP-complete languages

More information

CS 6505, Complexity and Algorithms Week 7: NP Completeness

CS 6505, Complexity and Algorithms Week 7: NP Completeness CS 6505, Complexity and Algorithms Week 7: NP Completeness Reductions We have seen some problems in P and NP, and we ve talked about space complexity. The Space Hierarchy Theorem showed us that there are

More information

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

Notes 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 information

Lecture 8. MINDNF = {(φ, k) φ is a CNF expression and DNF expression ψ s.t. ψ k and ψ is equivalent to φ}

Lecture 8. MINDNF = {(φ, k) φ is a CNF expression and DNF expression ψ s.t. ψ k and ψ is equivalent to φ} 6.841 Advanced Complexity Theory February 28, 2005 Lecture 8 Lecturer: Madhu Sudan Scribe: Arnab Bhattacharyya 1 A New Theme In the past few lectures, we have concentrated on non-uniform types of computation

More information

Polynomial kernels for constant-factor approximable problems

Polynomial kernels for constant-factor approximable problems 1 Polynomial kernels for constant-factor approximable problems Stefan Kratsch November 11, 2010 2 What do these problems have in common? Cluster Edge Deletion, Cluster Edge Editing, Edge Dominating Set,

More information

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

Today. Few Comments. PCP Theorem, Simple proof due to Irit Dinur [ECCC, TR05-046]! Based on some ideas promoted in [Dinur- Reingold 04]. Today Few Comments PCP Theorem, Simple proof due to Irit Dinur [ECCC, TR05-046]! Based on some ideas promoted in [Dinur- Reingold 04]. Remarkably simple novel proof. Leads to new quantitative results too!

More information

Comp487/587 - Boolean Formulas

Comp487/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 information

NP-problems continued

NP-problems continued NP-problems continued Page 1 Since SAT and INDEPENDENT SET can be reduced to each other we might think that there would be some similarities between the two problems. In fact, there is one such similarity.

More information

Complexity Classes V. More PCPs. Eric Rachlin

Complexity 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 information

On Variable-Weighted 2-SAT and Dual Problems

On Variable-Weighted 2-SAT and Dual Problems SAT 2007, Lissabon, Portugal, May 28-31, 2007 On Variable-Weighted 2-SAT and Dual Problems Stefan Porschen joint work with Ewald Speckenmeyer Institut für Informatik Universität zu Köln Germany Introduction

More information

More Completeness, conp, FNP,etc. CS254 Chris Pollett Oct 30, 2006.

More Completeness, conp, FNP,etc. CS254 Chris Pollett Oct 30, 2006. More Completeness, conp, FNP,etc. CS254 Chris Pollett Oct 30, 2006. Outline A last complete problem for NP conp, conp NP Function problems MAX-CUT A cut in a graph G=(V,E) is a set of nodes S used to partition

More information

Today: NP-Completeness (con t.)

Today: NP-Completeness (con t.) Today: NP-Completeness (con t.) COSC 581, Algorithms April 22, 2014 Many of these slides are adapted from several online sources Reading Assignments Today s class: Chapter 34.5 (con t.) Recall: Proving

More information