Hardness of Approximation for the TSP. Michael Lampis LAMSADE Université Paris Dauphine

Size: px
Start display at page:

Download "Hardness of Approximation for the TSP. Michael Lampis LAMSADE Université Paris Dauphine"

Transcription

1 Hardness of Approximation for the TSP Michael Lampis LAMSADE Université Paris Dauphine Sep 2, 2015

2 Overview Hardness of Approximation What is it? How to do it? (Easy) Examples The PCP Theorem What is it? How to use it? The Traveling Salesman Problem Approximation algorithms Strategy for Proving Hardness Other tools Expander Graphs Bounded-Occurrence CSPs A full reduction for the TSP Parameterized Approximation Schemes 2 / 39

3 Hardness of Approximation

4 Hardness of Approximation Day Summary: Approximation Algorithms with a performance guarantee Parameterized Approximation Schemes 4 / 39

5 Hardness of Approximation Day Summary: Approximation Algorithms with a performance guarantee Reminder: We have an (NP-hard) optimization problem We want to design an algorithm that gives good enough solution We want a guarantee of this For all instances I we have SOL(I) OPT(I) < r Parameterized Approximation Schemes 4 / 39

6 Hardness of Approximation Day Summary: Approximation Algorithms with a performance guarantee How close to 1 can we get the approximation ratio r? Typical situation: An initial algorithm gives some (bad) r. Then someone comes up with an improvement Repeat... Parameterized Approximation Schemes 4 / 39

7 Hardness of Approximation Day Summary: Approximation Algorithms with a performance guarantee How close to 1 can we get the approximation ratio r? Typical situation: An initial algorithm gives some (bad) r. Then someone comes up with an improvement Repeat... Until we are stuck! Now what? Parameterized Approximation Schemes 4 / 39

8 Hardness of Approximation Day Summary: Approximation Algorithms with a performance guarantee How close to 1 can we get the approximation ratio r? Typical situation: An initial algorithm gives some (bad) r. Then someone comes up with an improvement Repeat... Until we are stuck! Now what? Parameterized Approximation Schemes 4 / 39

9 Hardness of Approximation Day Summary: Approximation Algorithms with a performance guarantee How close to 1 can we get the approximation ratio r? Typical situation: An initial algorithm gives some (bad) r. Then someone comes up with an improvement Repeat... Until we are stuck! Now what? Goal of the theory of Hardness of Approximation: Prove the we are not incompetent! Parameterized Approximation Schemes 4 / 39

10 Hardness of Approximation: Can we do it? Approximation Algorithms vs. Hardness Poly-time algorithms vs. NP-completeness Algorithms vs. Complexity Parameterized Approximation Schemes 5 / 39

11 Hardness of Approximation: Can we do it? Approximation Algorithms vs. Hardness Poly-time algorithms vs. NP-completeness Algorithms vs. Complexity Parameterized Approximation Schemes 5 / 39

12 Hardness of Approximation: Can we do it? Approximation Algorithms vs. Hardness Poly-time algorithms vs. NP-completeness Algorithms vs. Complexity Parameterized Approximation Schemes 5 / 39

13 Hardness of Approximation: Can we do it? Approximation Algorithms vs. Hardness Poly-time algorithms vs. NP-completeness Algorithms vs. Complexity The two are related! Parameterized Approximation Schemes 5 / 39

14 Hardness of Approximation: Can we do it? Approximation Algorithms vs. Hardness Poly-time algorithms vs. NP-completeness Algorithms vs. Complexity The main tool will be algorithmic: Reductions Reminder: Basic tool of NP-hardness A is NP-hard. Reduce A to B. B is NP-hard. Parameterized Approximation Schemes 5 / 39

15 Hardness of Approximation: Can we do it? Approximation Algorithms vs. Hardness Poly-time algorithms vs. NP-completeness Algorithms vs. Complexity The main tool will be algorithmic: Reductions Reminder: Basic tool of NP-hardness A is NP-hard. Reduce A to B. B is NP-hard. Approximation version: Approximation Preserving Reductions Idea: A has no good approximation algorithm. We reduce A to B Conclusion: B has no good approximation algorithm. Parameterized Approximation Schemes 5 / 39

16 Hardness of Approximation: Can we do it? Approximation Algorithms vs. Hardness Poly-time algorithms vs. NP-completeness Algorithms vs. Complexity The main tool will be algorithmic: Reductions Reminder: Basic tool of NP-hardness A is NP-hard. Reduce A to B. B is NP-hard. Approximation version: Approximation Preserving Reductions Idea: A has no good approximation algorithm. We reduce A to B Conclusion: B has no good approximation algorithm. Parameterized Approximation Schemes 5 / 39

17 Hardness of Approximation: Can we do it? There are a couple of serious problems with this approach. Parameterized Approximation Schemes 6 / 39

18 Hardness of Approximation: Can we do it? There are a couple of serious problems with this approach. What is the first hard to approximate problem? Recall: Cook s theorem gives us a first NP-hard problem. Then we reduce from that. Here, we don t have a problem to begin from... Parameterized Approximation Schemes 6 / 39

19 Hardness of Approximation: Can we do it? There are a couple of serious problems with this approach. What is the first hard to approximate problem? Recall: Cook s theorem gives us a first NP-hard problem. Then we reduce from that. Here, we don t have a problem to begin from... How can we prove that a problem does not have a good approximation algorithm? This implies that it does not have a poly-time exact algorithm. P NP!! Parameterized Approximation Schemes 6 / 39

20 Hardness of Approximation: Can we do it? There are a couple of serious problems with this approach. What is the first hard to approximate problem? Recall: Cook s theorem gives us a first NP-hard problem. Then we reduce from that. Here, we don t have a problem to begin from... How can we prove that a problem does not have a good approximation algorithm? This implies that it does not have a poly-time exact algorithm. P NP!! Parameterized Approximation Schemes 6 / 39

21 Hardness of Approximation: How to do it We cannot avoid the second problem (without resolving P=NP) We will prove all our hardness results assuming P NP Parameterized Approximation Schemes 7 / 39

22 Hardness of Approximation: How to do it We cannot avoid the second problem (without resolving P=NP) We will prove all our hardness results assuming P NP We can solve the first problem using gap-introducting reductions. Parameterized Approximation Schemes 7 / 39

23 Hardness of Approximation: How to do it We cannot avoid the second problem (without resolving P=NP) We will prove all our hardness results assuming P NP We can solve the first problem using gap-introducting reductions. A gap-introducting reduction from SAT to a problem A has the following properties Given a SAT formula φ it produces in polynomial time an instance I of A (Completeness): If φ is satisfiable then OPT(I) > c (Soundness): If φ is not satisfiable then OPT(I) < s Parameterized Approximation Schemes 7 / 39

24 Hardness of Approximation: How to do it We cannot avoid the second problem (without resolving P=NP) We will prove all our hardness results assuming P NP We can solve the first problem using gap-introducting reductions. A gap-introducting reduction from SAT to a problem A has the following properties Given a SAT formula φ it produces in polynomial time an instance I of A (Completeness): If φ is satisfiable then OPT(I) > c (Soundness): If φ is not satisfiable then OPT(I) < s This establishes that no algorithm can achieve approximation ratio better than c/s Parameterized Approximation Schemes 7 / 39

25 Gap introduction: An easy example Recall the NP-hard Graph Coloring Problem Given a graph G(V,E) we want to find a coloring of the vertices such that any two neighbors have different colors. Objective: Minimize the number of colors used. Suppose my friend Bob claims to have designed an algorithm for Graph Coloring with approximation ratio 1.1. Parameterized Approximation Schemes 8 / 39

26 Gap introduction: An easy example Recall the NP-hard Graph Coloring Problem Given a graph G(V,E) we want to find a coloring of the vertices such that any two neighbors have different colors. Objective: Minimize the number of colors used. Suppose my friend Bob claims to have designed an algorithm for Graph Coloring with approximation ratio 1.1. This proves that P=NP! Parameterized Approximation Schemes 8 / 39

27 Gap introduction: An easy example Recall the NP-hard Graph Coloring Problem Given a graph G(V,E) we want to find a coloring of the vertices such that any two neighbors have different colors. Objective: Minimize the number of colors used. Suppose my friend Bob claims to have designed an algorithm for Graph Coloring with approximation ratio 1.1. Recall: Deciding if a graph can be colored with 3 colors in NP-hard. Parameterized Approximation Schemes 8 / 39

28 Gap introduction: An easy example Recall the NP-hard Graph Coloring Problem Given a graph G(V,E) we want to find a coloring of the vertices such that any two neighbors have different colors. Objective: Minimize the number of colors used. Suppose my friend Bob claims to have designed an algorithm for Graph Coloring with approximation ratio 1.1. Recall: Deciding if a graph can be colored with 3 colors in NP-hard. Translation: there is reduction which given a SAT formula φ produces either a graph that can be 3-colored, or one that needs more colors. Parameterized Approximation Schemes 8 / 39

29 Gap introduction: An easy example Recall the NP-hard Graph Coloring Problem Given a graph G(V,E) we want to find a coloring of the vertices such that any two neighbors have different colors. Objective: Minimize the number of colors used. Suppose my friend Bob claims to have designed an algorithm for Graph Coloring with approximation ratio 1.1. Recall: Deciding if a graph can be colored with 3 colors in NP-hard. Translation: there is reduction which given a SAT formula φ produces either a graph that can be 3-colored, or one that needs more colors. Run Bob s algorithm on this graph. If the graph can be 3-colored, the algorithm is guaranteed to produce a solution with at most = 3.3 colors (!!) Otherwise, the algorithm will return a solution with at least 4 colors. From the number of colors of the solution we can deduce if the formula was satisfiable! Parameterized Approximation Schemes 8 / 39

30 Gap introduction: An easy example Recall the NP-hard Graph Coloring Problem Given a graph G(V,E) we want to find a coloring of the vertices such that any two neighbors have different colors. Objective: Minimize the number of colors used. Suppose my friend Bob claims to have designed an algorithm for Graph Coloring with approximation ratio 1.1. Recall: Deciding if a graph can be colored with 3 colors in NP-hard. Translation: there is reduction which given a SAT formula φ produces either a graph that can be 3-colored, or one that needs more colors. Run Bob s algorithm on this graph. If the graph can be 3-colored, the algorithm is guaranteed to produce a solution with at most = 3.3 colors (!!) Otherwise, the algorithm will return a solution with at least 4 colors. From the number of colors of the solution we can deduce if the formula was satisfiable! Parameterized Approximation Schemes 8 / 39

31 TSP Traveling Salesman Problem: Given: Edge-weighted complete graph, weights follow triangle inequality Output: A tour that visits each vertex exactly once Objective: Minimize total cost Parameterized Approximation Schemes 9 / 39

32 TSP Traveling Salesman Problem: What if we don t have the triangle inequality? Parameterized Approximation Schemes 9 / 39

33 TSP Traveling Salesman Problem: What if we don t have the triangle inequality? Reduction from Hamiltonian Cycle Ham. Cycle: Given a graph, is there a cycle that visits each vertex exactly once? Given graph G(V,E) construct an instance of TSP Each edge E has weight 1 Each non-edge has weight w YES: There is a TSP tour with weight V NO: Any TSP tour has weight V 1+w No algorithm can have ratio better than V 1+w V We can now set w to something huge! (e.g. w = 2 n ) Parameterized Approximation Schemes 9 / 39

34 Gap Introduction: A non-trivial example Graph Balancing / Scheduling with restricted Assignment Given: n machines and m jobs. Each job has a duration and a set of machines it is allowed to run on. Output: An assignment of jobs to machines. Objective: Minimize makespan (time needed for last machine to finish all its jobs). Parameterized Approximation Schemes 10 / 39

35 Gap Introduction: A non-trivial example Graph Balancing / Scheduling with restricted Assignment Given: n machines and m jobs. Each job has a duration and a set of machines it is allowed to run on. Output: An assignment of jobs to machines. Objective: Minimize makespan (time needed for last machine to finish all its jobs). We are mainly interested in the case of the problem where each job can run on two machines. Parameterized Approximation Schemes 10 / 39

36 Gap Introduction: A non-trivial example Graph Balancing / Scheduling with restricted Assignment Given: n machines and m jobs. Each job has a duration and a set of machines it is allowed to run on. Output: An assignment of jobs to machines. Objective: Minimize makespan (time needed for last machine to finish all its jobs). We are mainly interested in the case of the problem where each job can run on two machines. Example: Parameterized Approximation Schemes 10 / 39

37 Gap Introduction: A non-trivial example Graph Balancing / Scheduling with restricted Assignment Given: n machines and m jobs. Each job has a duration and a set of machines it is allowed to run on. Output: An assignment of jobs to machines. Objective: Minimize makespan (time needed for last machine to finish all its jobs). We are mainly interested in the case of the problem where each job can run on two machines. Example: Parameterized Approximation Schemes 10 / 39

38 Gap Introduction: A non-trivial example Graph Balancing / Scheduling with restricted Assignment Given: n machines and m jobs. Each job has a duration and a set of machines it is allowed to run on. Output: An assignment of jobs to machines. Objective: Minimize makespan (time needed for last machine to finish all its jobs). We are mainly interested in the case of the problem where each job can run on two machines. Example: Parameterized Approximation Schemes 10 / 39

39 Gap Introduction: A non-trivial example Graph Balancing / Scheduling with restricted Assignment Given: n machines and m jobs. Each job has a duration and a set of machines it is allowed to run on. Output: An assignment of jobs to machines. Objective: Minimize makespan (time needed for last machine to finish all its jobs). We are mainly interested in the case of the problem where each job can run on two machines. Example: Parameterized Approximation Schemes 10 / 39

40 Gap Introduction: A non-trivial example Target Theorem: There is no approximation algorithm for Graph Balancing with ratio better than 3/2. Plan: Gap-Introducing reduction from 3-SAT Satisfiable formula maximum load 2 Unsatisfiable formula maximum load 3. Parameterized Approximation Schemes 11 / 39

41 Gap Introduction: A non-trivial example Target Theorem: There is no approximation algorithm for Graph Balancing with ratio better than 3/2. Plan: Gap-Introducing reduction from 3-SAT Satisfiable formula maximum load 2 Unsatisfiable formula maximum load 3. Thm: 3-OCC-3-SAT is NP-hard This is the version of 3-SAT where each variable appears at most 3 times and each literal at most twice. Proof: Replace each appearance of variable x with a fresh variable x 1,x 2,...,x n Add the clauses (x 1 x 2 ) (x 2 x 3 )... (x n x 1 ) Parameterized Approximation Schemes 11 / 39

42 Example continued Reduction: 3-OCC-3-SAT Graph Balancing Parameterized Approximation Schemes 12 / 39

43 Example continued Reduction: 3-OCC-3-SAT Graph Balancing For each variable create an edge of weight 2 and two vertices Parameterized Approximation Schemes 12 / 39

44 Example continued Reduction: 3-OCC-3-SAT Graph Balancing For each create a vertex and connect it with its literals, here c 1 = (x 1 x 2 x 3 ) Parameterized Approximation Schemes 12 / 39

45 Example continued Reduction: 3-OCC-3-SAT Graph Balancing A truth assignment orients heavy edges towards the false literal Parameterized Approximation Schemes 12 / 39

46 Example continued Reduction: 3-OCC-3-SAT Graph Balancing In order to achieve load=2 we must find a true literal in each clause Parameterized Approximation Schemes 12 / 39

47 Recap Gap-introducing reductions Reduce an NP-hard problem to instances of our problem which are very different in the YES/NO cases. This implies hardness of approximation for our problem Next step, reduct to other problems... Unfortunately, direct gap-introducing reductions are very rare. Usually work for problems of the form Max-Min Does not work for Min-Avg, Min-Sum,... How to prove that such problems are hard? Parameterized Approximation Schemes 13 / 39

48 The PCP Theorem

49 Min-Max or Min-Sum? Consider the MAX-3-SAT problem Given: 3-SAT formula Objective: Find assignment that satisfies most clauses We can try the same trick to prove it s hard to approximate YES: OPT(I) = m NO: OPT(I) m 1 No approximation better than m 1 m Parameterized Approximation Schemes 15 / 39

50 Min-Max or Min-Sum? Consider the MAX-3-SAT problem Given: 3-SAT formula Objective: Find assignment that satisfies most clauses We can try the same trick to prove it s hard to approximate YES: OPT(I) = m NO: OPT(I) m 1 No approximation better than m 1 m Unfortunately, this ratio is basically 1... Generally, direct gap-introducing reductions are hard to do for problems where a bad instance needs to have many problems. To prove that such problems are hard we generally need the famous PCP theorem. Parameterized Approximation Schemes 15 / 39

51 The PCP theorem: approximation view Theorem: There is a polynomial-time reduction from 3-SAT to 3-SAT with the following properties If the original formula φ is satisfiable then the new formula φ is also If the original formula is not satisfiable, then any assignment satisfies at most an r fraction of φ, where r < 1 a constant indepent of φ. Parameterized Approximation Schemes 16 / 39

52 The PCP theorem: approximation view Theorem: There is a polynomial-time reduction from 3-SAT to 3-SAT with the following properties If the original formula φ is satisfiable then the new formula φ is also If the original formula is not satisfiable, then any assignment satisfies at most an r fraction of φ, where r < 1 a constant indepent of φ. Translation: The PCP theorem gives a gap-introducing reduction to MAX-3-SAT. This produces a starting problem from which we can do reductions to show that other problems are hard. In this way, the PCP theorem is to approximation hardness what Cook s theorem is to NP-completeness. Parameterized Approximation Schemes 16 / 39

53 The PCP theorem: approximation view Theorem: There is a polynomial-time reduction from 3-SAT to 3-SAT with the following properties If the original formula φ is satisfiable then the new formula φ is also If the original formula is not satisfiable, then any assignment satisfies at most an r fraction of φ, where r < 1 a constant indepent of φ. Translation: The PCP theorem gives a gap-introducing reduction to MAX-3-SAT. This produces a starting problem from which we can do reductions to show that other problems are hard. In this way, the PCP theorem is to approximation hardness what Cook s theorem is to NP-completeness. But it is also much more... Parameterized Approximation Schemes 16 / 39

54 The PCP theorem: proof-checking view Problems in NP: a short proof for YES instances E.g. SAT, 3-Coloring Mathematical Theorems themselves!?!? Parameterized Approximation Schemes 17 / 39

55 The PCP theorem: proof-checking view Problems in NP: a short proof for YES instances E.g. SAT, 3-Coloring Mathematical Theorems themselves!?!? Given such a proof/certificate, how can we verify it s correct? We have to read it, of course. All of it??? Parameterized Approximation Schemes 17 / 39

56 The PCP theorem: proof-checking view Problems in NP: a short proof for YES instances E.g. SAT, 3-Coloring Mathematical Theorems themselves!?!? Given such a proof/certificate, how can we verify it s correct? We have to read it, of course. All of it??? PCP theorem (informal statement): There is a way to write the proof so that its size stays roughly the same but it can be verified with high probability by reading a constant number of bits. Parameterized Approximation Schemes 17 / 39

57 The PCP theorem: proof-checking view Problems in NP: a short proof for YES instances E.g. SAT, 3-Coloring Mathematical Theorems themselves!?!? Given such a proof/certificate, how can we verify it s correct? We have to read it, of course. All of it??? PCP theorem (informal statement): There is a way to write the proof so that its size stays roughly the same but it can be verified with high probability by reading a constant number of bits. This is unbelievable! (and it made the NY Times) Parameterized Approximation Schemes 17 / 39

58 The PCP theorem: implications Equivalence of two forms: a 3-SAT formula for which it is easy to verify a certificate (assignment) is a formula for which every assignment makes many clauses false. Using the PCP theorem we have some (tiny) constant for the hardness of MAX-3-SAT Is this all? Parameterized Approximation Schemes 18 / 39

59 The PCP theorem: implications Equivalence of two forms: a 3-SAT formula for which it is easy to verify a certificate (assignment) is a formula for which every assignment makes many clauses false. Using the PCP theorem we have some (tiny) constant for the hardness of MAX-3-SAT Is this all? [Hastad 2001] There is no better than 7/8-approximation for MAX-E3-SAT There is no better than 1/2-approximation for MAX-E3-LIN2 In MAX-E3-LIN2 we are given equations of the form x y z = 0 and want to satisfy as many as possible. MAX-E3-LIN2 is a common starting point for inapproximability reductions. These results match the performance of the trivial algorithm! Parameterized Approximation Schemes 18 / 39

60 The Traveling Salesman Problem

61 The Traveling Salesman Problem Input: An edge-weighted graph G(V,E) Objective: Find an ordering of the vertices v 1,v 2,...,v n such that d(v 1,v 2 ) + d(v 2,v 3 ) d(v n,v 1 ) is minimized. d(v i,v j ) is the shortest-path distance of v i,v j on G Parameterized Approximation Schemes 20 / 39

62 The Traveling Salesman Problem Parameterized Approximation Schemes 20 / 39

63 The Traveling Salesman Problem Parameterized Approximation Schemes 20 / 39

64 The Traveling Salesman Problem Parameterized Approximation Schemes 20 / 39

65 The Traveling Salesman Problem Parameterized Approximation Schemes 20 / 39

66 The Traveling Salesman Problem Parameterized Approximation Schemes 20 / 39

67 The Traveling Salesman Problem Parameterized Approximation Schemes 20 / 39

68 The Traveling Salesman Problem Parameterized Approximation Schemes 20 / 39

69 The Traveling Salesman Problem Parameterized Approximation Schemes 20 / 39

70 TSP Approximations Upper bounds 3 2 approximation (Christofides 1976) For graphic (un-weighted) case 3 2 ǫ approximation (Oveis Gharan et al. FOCS 11) approximation (Mömke and Svensson FOCS 11) approximation (Mucha STACS 12) 1.4 approximation (Sebö and Vygen arxiv 12) For ATSP the best ratio is O(log n/ log log n) (Asadpour et al. SODA 10) 13 9 Parameterized Approximation Schemes 21 / 39

71 TSP Approximations Lower bounds Problem is APX-hard (Papadimitriou and Yannakakis 93) inapproximable, ATSP 2804 (Engebretsen STACS 99) inapproximable (Böckenhauer et al. STACS 00) inapproximable, ATSP 116 (Papadimitriou and Vempala STOC 00, Combinatorica 06) Current best (Karpinski, L., Schmied): Theorem It is NP-hard to approximate TSP better than better than and ATSP Parameterized Approximation Schemes 22 / 39

72 TSP Approximations Lower bounds Problem is APX-hard (Papadimitriou and Yannakakis 93) inapproximable, ATSP 2804 (Engebretsen STACS 99) inapproximable (Böckenhauer et al. STACS 00) inapproximable, ATSP 116 (Papadimitriou and Vempala STOC 00, Combinatorica 06) Current best (Karpinski, L., Schmied): Theorem It is NP-hard to approximate TSP better than better than and ATSP Notice the huge distance between the best algorithm (50% error) and hardness (0.8% error)... Parameterized Approximation Schemes 22 / 39

73 Reduction Technique We reduce some inapproximable CSP (e.g. MAX-3SAT) to TSP. Parameterized Approximation Schemes 23 / 39

74 Reduction Technique First, design some gadgets to represent the clauses Parameterized Approximation Schemes 23 / 39

75 Reduction Technique Then, add some choice vertices to represent truth assignments to variables Parameterized Approximation Schemes 23 / 39

76 Reduction Technique For each variable, create a path through clauses where it appears positive Parameterized Approximation Schemes 23 / 39

77 Reduction Technique... and another path for its negative appearances Parameterized Approximation Schemes 23 / 39

78 Reduction Technique Parameterized Approximation Schemes 23 / 39

79 Reduction Technique A truth assignment dictates a general path Parameterized Approximation Schemes 23 / 39

80 Reduction Technique Parameterized Approximation Schemes 23 / 39

81 Reduction Technique Parameterized Approximation Schemes 23 / 39

82 Reduction Technique We must make sure that gadgets are cheaper to traverse if corresponding clause is satisfied Parameterized Approximation Schemes 23 / 39

83 Reduction Technique If a clause is not satisfied, we will pay more. We need many clauses to be unsatisfied in a No instance to have a big gap. (PCP theorem) Parameterized Approximation Schemes 23 / 39

84 Reduction Technique For the converse direction we must also make sure that cheating tours are not optimal! Parameterized Approximation Schemes 23 / 39

85 How to ensure consistency Basic idea here: consistency would be easy if each variable occurred at most c times, c a constant. Cheating would only help a tour fix a bounded number of clauses. Parameterized Approximation Schemes 24 / 39

86 How to ensure consistency Basic idea here: consistency would be easy if each variable occurred at most c times, c a constant. Cheating would only help a tour fix a bounded number of clauses. We will rely on techniques and tools used to prove inapproximability for bounded-occurrence CSPs. This is where expander graphs are important. Main tool: amplifier graph constructions due to Berman and Karpinski. Parameterized Approximation Schemes 24 / 39

87 How to ensure consistency Basic idea here: consistency would be easy if each variable occurred at most c times, c a constant. Cheating would only help a tour fix a bounded number of clauses. We will rely on techniques and tools used to prove inapproximability for bounded-occurrence CSPs. This is where expander graphs are important. Main tool: amplifier graph constructions due to Berman and Karpinski. Expander graphs are a generally useful tool, so let s take a look at what they are... Parameterized Approximation Schemes 24 / 39

88 Expander and Amplifier Graphs

89 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. Parameterized Approximation Schemes 26 / 39

90 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. Definition: A graph G(V,E) is an expander if For all S V with S V 2 we have for some constant c E(S,V \S) S The maximum degree is bounded c Parameterized Approximation Schemes 26 / 39

91 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Parameterized Approximation Schemes 26 / 39

92 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Example: Parameterized Approximation Schemes 26 / 39

93 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Example: A complete bipartite graph is well-connected but not sparse. Parameterized Approximation Schemes 26 / 39

94 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Example: A complete bipartite graph is well-connected but not sparse. Parameterized Approximation Schemes 26 / 39

95 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Example: A complete bipartite graph is well-connected but not sparse. Parameterized Approximation Schemes 26 / 39

96 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Example: A grid is sparse but not well-connected. Parameterized Approximation Schemes 26 / 39

97 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Example: A grid is sparse but not well-connected. Parameterized Approximation Schemes 26 / 39

98 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Example: A grid is sparse but not well-connected. Parameterized Approximation Schemes 26 / 39

99 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Example: An infinite binary tree is a good expander. Parameterized Approximation Schemes 26 / 39

100 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Example: An infinite binary tree is a good expander. Parameterized Approximation Schemes 26 / 39

101 Expander Graphs Informal description: An expander graph is a well-connected and sparse graph. In any possible partition of the vertices into two sets, there are many edges crossing the cut. This is achieved even though the graph has low degree, therefore few edges. Example: An infinite binary tree is a good expander. Parameterized Approximation Schemes 26 / 39

102 Applications of Expanders Expander graphs have a number of applications Proof of PCP theorem Derandomization Error-correcting codes Parameterized Approximation Schemes 27 / 39

103 Applications of Expanders Expander graphs have a number of applications Proof of PCP theorem Derandomization Error-correcting codes... and inapproximability of bounded occurrence CSPs! Parameterized Approximation Schemes 27 / 39

104 Applications of Expanders Expanders and inapproximability Consider the standard reduction from 3-SAT to 3-OCC-3-SAT Replace each appearance of variable x with a fresh variable x 1,x 2,...,x n Add the clauses (x 1 x 2 ) (x 2 x 3 )... (x n x 1 ) Parameterized Approximation Schemes 27 / 39

105 Applications of Expanders Expanders and inapproximability Consider the standard reduction from 3-SAT to 3-OCC-3-SAT Replace each appearance of variable x with a fresh variable x 1,x 2,...,x n Add the clauses (x 1 x 2 ) (x 2 x 3 )... (x n x 1 ) Problem: This does not preserve inapproximability! We could add (x i x j ) for all i,j. This ensures consistency but adds too many clauses and does not decrease number of occurrences! Parameterized Approximation Schemes 27 / 39

106 Applications of Expanders Expanders and inapproximability We modify this using a 1-expander [Papadimitriou Yannakakis 91] Recall: a 1-expander is a graph s.t. in each partition of the vertices the number of edges crossing the cut is larger than the number of vertices of the smaller part. Parameterized Approximation Schemes 27 / 39

107 Applications of Expanders Expanders and inapproximability We modify this using a 1-expander [Papadimitriou Yannakakis 91] Replace each appearance of variable x with a fresh variable x 1,x 2,...,x n Construct an n-vertex 1-expander. For each edge (i,j) add the clauses (x i x j ) (x j x i ) Parameterized Approximation Schemes 27 / 39

108 Applications of Expanders Why does this work? Suppose that in the new instance the optimal assignment sets some of the x i s to 0 and others to 1. This gives a partition of the 1-expander. Each edge cut by the partition corresponds to an unsatisfied clause. Number of cut edges > number of minority assigned vertices = number of clauses lost by being consistent. Hence, it is always optimal to give the same value to all x i s. Also, because expander graphs are sparse, only linear number of clauses added. This gives some inapproximability constant. Parameterized Approximation Schemes 27 / 39

109 Limits of expanders Expanders sound useful. But how good expanders can we get? We want: Low degree few edges High expansion (at least 1). These are conflicting goals! Parameterized Approximation Schemes 28 / 39

110 Limits of expanders Expanders sound useful. But how good expanders can we get? We want: Low degree few edges High expansion (at least 1). These are conflicting goals! The smallest for which we currently know we can have expansion 1 is = 6. [Bollobás 88] Parameterized Approximation Schemes 28 / 39

111 Limits of expanders Expanders sound useful. But how good expanders can we get? We want: Low degree few edges High expansion (at least 1). These are conflicting goals! The smallest for which we currently know we can have expansion 1 is = 6. [Bollobás 88] Problem: = 6 is too large, = 5 probably won t work... Parameterized Approximation Schemes 28 / 39

112 Amplifiers Amplifiers are expanders for some of the vertices. The other vertices are thrown in to make consistency easier to achieve. This allows us to get smaller. Parameterized Approximation Schemes 29 / 39

113 Amplifiers Amplifiers are expanders for some of the vertices. The other vertices are thrown in to make consistency easier to achieve. This allows us to get smaller. 5-regular amplifier [Berman Karpinski 03] Bipartite graph. n vertices on left, 0.8n vertices on right. 4-regular on left, 5-regular on right. Graph constructed randomly. Crucial Property: whp any partition cuts more edges than the number of left vertices on the smaller set. Parameterized Approximation Schemes 29 / 39

114 Amplifiers Amplifiers are expanders for some of the vertices. The other vertices are thrown in to make consistency easier to achieve. This allows us to get smaller. 3-regular wheel amplifier [Berman Karpinski 01] Start with a cycle on 7n vertices. Every seventh vertex is a contact vertex. Other vertices are checkers. Take a random perfect matching of checkers. Parameterized Approximation Schemes 29 / 39

115 Back to the Reduction

116 Overview We start from an instance of MAX-E3-LIN2. Given a set of linear equations (mod 2) each of size three satisfy as many as possible. Problem known to be 2-inapproximable (Håstad) Parameterized Approximation Schemes 31 / 39

117 Overview We use the Berman-Karpinski amplifier construction to obtain an instance where each variable appears exactly 5 times (and most equations have size 2). Parameterized Approximation Schemes 31 / 39

118 Overview Parameterized Approximation Schemes 31 / 39

119 Overview A simple trick reduces this to the 1in3 predicate. Parameterized Approximation Schemes 31 / 39

120 Overview From this instance we construct a graph. Parameterized Approximation Schemes 31 / 39

121 1in3-SAT Input: A set of clauses (l 1 l 2 l 3 ), l 1,l 2,l 3 literals. Objective: A clause is satisfied if exactly one of its literals is true. Satisfy as many clauses as possible. Easy to reduce MAX-LIN2 to this problem. Especially for size two equations (x+y = 1) (x y). Naturally gives gadget for TSP In TSP we d like to visit each vertex at least once, but not more than once (to save cost) Parameterized Approximation Schemes 32 / 39

122 TSP and Euler tours Parameterized Approximation Schemes 33 / 39

123 TSP and Euler tours Parameterized Approximation Schemes 33 / 39

124 TSP and Euler tours Parameterized Approximation Schemes 33 / 39

125 TSP and Euler tours A TSP tour gives an Eulerian multi-graph composed with edges of G. An Eulerian multi-graph composed with edges of G gives a TSP tour. TSP Select a multiplicity for each edge so that the resulting multi-graph is Eulerian and total cost is minimized Note: no edge is used more than twice Parameterized Approximation Schemes 33 / 39

126 Gadget Forced Edges We would like to be able to dictate in our construction that a certain edge has to be used at least once. Parameterized Approximation Schemes 34 / 39

127 Gadget Forced Edges If we had directed edges, this could be achieved by adding a dummy intermediate vertex Parameterized Approximation Schemes 34 / 39

128 Gadget Forced Edges Here, we add many intermediate vertices and evenly distribute the weight w among them. Think of B as very large. Parameterized Approximation Schemes 34 / 39

129 Gadget Forced Edges At most one of the new edges may be unused, and in that case all others are used twice. Parameterized Approximation Schemes 34 / 39

130 Gadget Forced Edges In that case, adding two copies of that edge to the solution doesn t hurt much (for B sufficiently large). Parameterized Approximation Schemes 34 / 39

131 1in3 Gadget Let s design a gadget for (x y z) Parameterized Approximation Schemes 35 / 39

132 1in3 Gadget First, three entry/exit points Parameterized Approximation Schemes 35 / 39

133 1in3 Gadget Connect them... Parameterized Approximation Schemes 35 / 39

134 1in3 Gadget... with forced edges Parameterized Approximation Schemes 35 / 39

135 1in3 Gadget The gadget is a connected component. A good tour visits it once. Parameterized Approximation Schemes 35 / 39

136 1in3 Gadget... like this Parameterized Approximation Schemes 35 / 39

137 1in3 Gadget This corresponds to an unsatisfied clause Parameterized Approximation Schemes 35 / 39

138 1in3 Gadget This corresponds to a dishonest tour Parameterized Approximation Schemes 35 / 39

139 1in3 Gadget The dishonest tour pays this edge twice. How expensive must it be before cheating becomes suboptimal? Note that w = 10 suffices, since the two cheating variables appear in at most 10 clauses. Parameterized Approximation Schemes 35 / 39

140 Construction High-level view: construct an origin s and two terminal vertices for each variable. Parameterized Approximation Schemes 36 / 39

141 Construction Connect them with forced edges Parameterized Approximation Schemes 36 / 39

142 Construction Add the gadgets Parameterized Approximation Schemes 36 / 39

143 Construction An honest traversal for x 2 looks like this Parameterized Approximation Schemes 36 / 39

144 Construction A dishonest traversal looks like this... Parameterized Approximation Schemes 36 / 39

145 Construction... but there must be cheating in two places There are as many doubly-used forced edges as affected variables w 5 Parameterized Approximation Schemes 36 / 39

146 Construction... but there must be cheating in two places There are as many doubly-used forced edges as affected variables w 5 In fact, no need to write off affected clauses. Use random assignment for cheated variables and some of them will be satisfied Parameterized Approximation Schemes 36 / 39

147 Under the carpet Many details missing Dishonest variables are set randomly but not independently to ensure that some clauses are satisfied with probability 1. The structure of the instance (from BK amplifier) must be taken into account to calculate the final constant. Parameterized Approximation Schemes 37 / 39

148 Under the carpet Many details missing Dishonest variables are set randomly but not independently to ensure that some clauses are satisfied with probability 1. The structure of the instance (from BK amplifier) must be taken into account to calculate the final constant. Theorem: There is no approximation algorithm for TSP, unless P=NP. Parameterized Approximation Schemes 37 / 39

149 Under the carpet Many details missing Dishonest variables are set randomly but not independently to ensure that some clauses are satisfied with probability 1. The structure of the instance (from BK amplifier) must be taken into account to calculate the final constant. Theorem: There is no approximation algorithm for TSP, unless P=NP. Can we do better? Parameterized Approximation Schemes 37 / 39

150 Under the carpet Many details missing Dishonest variables are set randomly but not independently to ensure that some clauses are satisfied with probability 1. The structure of the instance (from BK amplifier) must be taken into account to calculate the final constant. Theorem: There is no approximation algorithm for TSP, unless P=NP. Can we do better? Parameterized Approximation Schemes 37 / 39

151 Summary Hardness of Approximation theory is the evil twin of the theory of approximation algorithms. It relies on some deep mathematical tools PCP theorem, expander graphs,... We discussed some general common patterns Local vs. global errors, gaps,... Parameterized Approximation Schemes 38 / 39

152 Summary Hardness of Approximation theory is the evil twin of the theory of approximation algorithms. It relies on some deep mathematical tools PCP theorem, expander graphs,... We discussed some general common patterns Local vs. global errors, gaps,... Area still under construction! Still far from answer for TSP and many other prominent problems! For Graph Balancing the answer is between 1.5 and Can we make more progress? Parameterized Approximation Schemes 38 / 39

153 The end Questions? Parameterized Approximation Schemes 39 / 39

New Inapproximability Bounds for TSP

New Inapproximability Bounds for TSP New Inapproximability Bounds for TSP Marek Karpinski 1,, Michael Lampis,, and Richard Schmied 3, 1 Dept. of Computer Science and the Hausdorff Center for Mathematics, University of Bonn. marek@cs.uni-bonn.de

More information

Sub-exponential Approximation Schemes: From Dense to Almost-Sparse. Dimitris Fotakis Michael Lampis Vangelis Paschos

Sub-exponential Approximation Schemes: From Dense to Almost-Sparse. Dimitris Fotakis Michael Lampis Vangelis Paschos Sub-exponential Approximation Schemes: From Dense to Almost-Sparse Dimitris Fotakis Michael Lampis Vangelis Paschos NTU Athens Université Paris Dauphine Feb 18, STACS 2016 Motivation Sub-Exponential Approximation

More information

Sub-exponential Approximation Schemes: From Dense to Almost-Sparse. Dimitris Fotakis Michael Lampis Vangelis Paschos

Sub-exponential Approximation Schemes: From Dense to Almost-Sparse. Dimitris Fotakis Michael Lampis Vangelis Paschos Sub-exponential Approximation Schemes: From Dense to Almost-Sparse Dimitris Fotakis Michael Lampis Vangelis Paschos NTU Athens Université Paris Dauphine Nov 5, 2015 Overview Things you will hear in this

More information

CS261: A Second Course in Algorithms Lecture #16: The Traveling Salesman Problem

CS261: A Second Course in Algorithms Lecture #16: The Traveling Salesman Problem CS61: A Second Course in Algorithms Lecture #16: The Traveling Salesman Problem Tim Roughgarden February 5, 016 1 The Traveling Salesman Problem (TSP) In this lecture we study a famous computational problem,

More information

Best known solution time is Ω(V!) Check every permutation of vertices to see if there is a graph edge between adjacent vertices

Best known solution time is Ω(V!) Check every permutation of vertices to see if there is a graph edge between adjacent vertices Hard Problems Euler-Tour Problem Undirected graph G=(V,E) An Euler Tour is a path where every edge appears exactly once. The Euler-Tour Problem: does graph G have an Euler Path? Answerable in O(E) time.

More information

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R

More information

CS270 Combinatorial Algorithms & Data Structures Spring Lecture 19:

CS270 Combinatorial Algorithms & Data Structures Spring Lecture 19: CS270 Combinatorial Algorithms & Data Structures Spring 2003 Lecture 19: 4.1.03 Lecturer: Satish Rao Scribes: Kevin Lacker and Bill Kramer Disclaimer: These notes have not been subjected to the usual scrutiny

More information

Lecture 1. 2 Motivation: Fast. Reliable. Cheap. Choose two.

Lecture 1. 2 Motivation: Fast. Reliable. Cheap. Choose two. Approximation Algorithms and Hardness of Approximation February 19, 2013 Lecture 1 Lecturer: Ola Svensson Scribes: Alantha Newman 1 Class Information 4 credits Lecturers: Ola Svensson (ola.svensson@epfl.ch)

More information

6.889 Lecture 15: Traveling Salesman (TSP)

6.889 Lecture 15: Traveling Salesman (TSP) 6.889 Lecture 15: Traveling Salesman (TSP) Christian Sommer csom@mit.edu (figures by Philip Klein) November 2, 2011 Traveling Salesman Problem (TSP) given G = (V, E) find a tour visiting each 1 node v

More information

Steven Skiena. skiena

Steven Skiena.   skiena Lecture 22: Introduction to NP-completeness (1997) Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Among n people,

More information

Improved Approximations for Graph-TSP in Regular Graphs

Improved Approximations for Graph-TSP in Regular Graphs Improved Approximations for Graph-TSP in Regular Graphs R Ravi Carnegie Mellon University Joint work with Uriel Feige (Weizmann), Jeremy Karp (CMU) and Mohit Singh (MSR) 1 Graph TSP Given a connected unweighted

More information

Improved Approximations for Graph-TSP in Regular Graphs

Improved Approximations for Graph-TSP in Regular Graphs Improved Approximations for Graph-TSP in Regular Graphs R Ravi Carnegie Mellon University Joint work with Uriel Feige (Weizmann), Satoru Iwata (U Tokyo), Jeremy Karp (CMU), Alantha Newman (G-SCOP) and

More information

Lecture 24: More Reductions (1997) Steven Skiena. skiena

Lecture 24: More Reductions (1997) Steven Skiena.   skiena Lecture 24: More Reductions (1997) Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Prove that subgraph isomorphism

More information

Lecture 8: The Traveling Salesman Problem

Lecture 8: The Traveling Salesman Problem Lecture 8: The Traveling Salesman Problem Let G = (V, E) be an undirected graph. A Hamiltonian cycle of G is a cycle that visits every vertex v V exactly once. Instead of Hamiltonian cycle, we sometimes

More information

Towards the Proof of the PCP Theorem

Towards the Proof of the PCP Theorem CS640 Computational Complexity Towards the Proof of the PCP Theorem Instructor: Manindra Agrawal Scribe: Ramprasad Saptharishi Last class we saw completed our discussion on expander graphs. We shall now

More information

P and NP CISC5835, Algorithms for Big Data CIS, Fordham Univ. Instructor: X. Zhang

P and NP CISC5835, Algorithms for Big Data CIS, Fordham Univ. Instructor: X. Zhang P and NP CISC5835, Algorithms for Big Data CIS, Fordham Univ. Instructor: X. Zhang Efficient Algorithms So far, we have developed algorithms for finding shortest paths in graphs, minimum spanning trees

More information

val(y, I) α (9.0.2) α (9.0.3)

val(y, I) α (9.0.2) α (9.0.3) CS787: Advanced Algorithms Lecture 9: Approximation Algorithms In this lecture we will discuss some NP-complete optimization problems and give algorithms for solving them that produce a nearly optimal,

More information

P and NP CISC4080, Computer Algorithms CIS, Fordham Univ. Instructor: X. Zhang

P and NP CISC4080, Computer Algorithms CIS, Fordham Univ. Instructor: X. Zhang P and NP CISC4080, Computer Algorithms CIS, Fordham Univ. Instructor: X. Zhang Efficient Algorithms So far, we have developed algorithms for finding shortest paths in graphs, minimum spanning trees in

More information

Questions? You are given the complete graph of Facebook. What questions would you ask? (What questions could we hope to answer?)

Questions? You are given the complete graph of Facebook. What questions would you ask? (What questions could we hope to answer?) P vs. NP What now? Attribution These slides were prepared for the New Jersey Governor s School course The Math Behind the Machine taught in the summer of 2011 by Grant Schoenebeck Large parts of these

More information

In this lecture we discuss the complexity of approximation problems, and show how to prove they are NP-hard.

In this lecture we discuss the complexity of approximation problems, and show how to prove they are NP-hard. In this lecture we discuss the complexity of approximation problems, and show how to prove they are NP-hard. 1 We will show how one can prove such results and then apply this technique to some approximation

More information

PCP and Hardness of Approximation

PCP and Hardness of Approximation PCP and Hardness of Approximation January 30, 2009 Our goal herein is to define and prove basic concepts regarding hardness of approximation. We will state but obviously not prove a PCP theorem as a starting

More information

Approximation Algorithms

Approximation Algorithms Chapter 8 Approximation Algorithms Algorithm Theory WS 2016/17 Fabian Kuhn Approximation Algorithms Optimization appears everywhere in computer science We have seen many examples, e.g.: scheduling jobs

More information

Vertex Cover Approximations

Vertex Cover Approximations CS124 Lecture 20 Heuristics can be useful in practice, but sometimes we would like to have guarantees. Approximation algorithms give guarantees. It is worth keeping in mind that sometimes approximation

More information

Travelling Salesman Problem. Algorithms and Networks 2015/2016 Hans L. Bodlaender Johan M. M. van Rooij

Travelling Salesman Problem. Algorithms and Networks 2015/2016 Hans L. Bodlaender Johan M. M. van Rooij Travelling Salesman Problem Algorithms and Networks 2015/2016 Hans L. Bodlaender Johan M. M. van Rooij 1 Contents TSP and its applications Heuristics and approximation algorithms Construction heuristics,

More information

Notes for Lecture 24

Notes for Lecture 24 U.C. Berkeley CS170: Intro to CS Theory Handout N24 Professor Luca Trevisan December 4, 2001 Notes for Lecture 24 1 Some NP-complete Numerical Problems 1.1 Subset Sum The Subset Sum problem is defined

More information

Theory of Computing. Lecture 10 MAS 714 Hartmut Klauck

Theory of Computing. Lecture 10 MAS 714 Hartmut Klauck Theory of Computing Lecture 10 MAS 714 Hartmut Klauck Seven Bridges of Königsberg Can one take a walk that crosses each bridge exactly once? Seven Bridges of Königsberg Model as a graph Is there a path

More information

1 Better Approximation of the Traveling Salesman

1 Better Approximation of the Traveling Salesman Stanford University CS261: Optimization Handout 4 Luca Trevisan January 13, 2011 Lecture 4 In which we describe a 1.5-approximate algorithm for the Metric TSP, we introduce the Set Cover problem, observe

More information

Trading Time for Approximation

Trading Time for Approximation Trading Time for Approximation Michael Lampis Université Paris Dauphine MTA SZTAKI Sep 21 2016 Motivation Sub-Exponential Approximation (50 years in a slide) Trading Time for Approximation 2 / 32 Motivation

More information

Lecture 10 October 7, 2014

Lecture 10 October 7, 2014 6.890: Algorithmic Lower Bounds: Fun With Hardness Proofs Fall 2014 Lecture 10 October 7, 2014 Prof. Erik Demaine Scribes: Fermi Ma, Asa Oines, Mikhail Rudoy, Erik Waingarten Overview This lecture begins

More information

15-451/651: Design & Analysis of Algorithms November 4, 2015 Lecture #18 last changed: November 22, 2015

15-451/651: Design & Analysis of Algorithms November 4, 2015 Lecture #18 last changed: November 22, 2015 15-451/651: Design & Analysis of Algorithms November 4, 2015 Lecture #18 last changed: November 22, 2015 While we have good algorithms for many optimization problems, the previous lecture showed that many

More information

CS154, Lecture 18: PCPs, Hardness of Approximation, Approximation-Preserving Reductions, Interactive Proofs, Zero-Knowledge, Cold Fusion, Peace in

CS154, Lecture 18: PCPs, Hardness of Approximation, Approximation-Preserving Reductions, Interactive Proofs, Zero-Knowledge, Cold Fusion, Peace in CS154, Lecture 18: PCPs, Hardness of Approximation, Approximation-Preserving Reductions, Interactive Proofs, Zero-Knowledge, Cold Fusion, Peace in the Middle East There are thousands of NP-complete problems

More information

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions.

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions. CS 787: Advanced Algorithms NP-Hardness Instructor: Dieter van Melkebeek We review the concept of polynomial-time reductions, define various classes of problems including NP-complete, and show that 3-SAT

More information

Traveling Salesman Problem. Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij

Traveling Salesman Problem. Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij Traveling Salesman Problem Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij 1 Contents TSP and its applications Heuristics and approximation algorithms Construction heuristics,

More information

Exact Algorithms for NP-hard problems

Exact Algorithms for NP-hard problems 24 mai 2012 1 Why do we need exponential algorithms? 2 3 Why the P-border? 1 Practical reasons (Jack Edmonds, 1965) For practical purposes the difference between algebraic and exponential order is more

More information

1 The Traveling Salesperson Problem (TSP)

1 The Traveling Salesperson Problem (TSP) CS 598CSC: Approximation Algorithms Lecture date: January 23, 2009 Instructor: Chandra Chekuri Scribe: Sungjin Im In the previous lecture, we had a quick overview of several basic aspects of approximation

More information

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/27/18

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/27/18 601.433/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/27/18 22.1 Introduction We spent the last two lectures proving that for certain problems, we can

More information

CMPSCI611: The SUBSET-SUM Problem Lecture 18

CMPSCI611: The SUBSET-SUM Problem Lecture 18 CMPSCI611: The SUBSET-SUM Problem Lecture 18 We begin today with the problem we didn t get to at the end of last lecture the SUBSET-SUM problem, which we also saw back in Lecture 8. The input to SUBSET-

More information

9.1 Cook-Levin Theorem

9.1 Cook-Levin Theorem CS787: Advanced Algorithms Scribe: Shijin Kong and David Malec Lecturer: Shuchi Chawla Topic: NP-Completeness, Approximation Algorithms Date: 10/1/2007 As we ve already seen in the preceding lecture, two

More information

Computational problems. Lecture 2: Combinatorial search and optimisation problems. Computational problems. Examples. Example

Computational problems. Lecture 2: Combinatorial search and optimisation problems. Computational problems. Examples. Example Lecture 2: Combinatorial search and optimisation problems Different types of computational problems Examples of computational problems Relationships between problems Computational properties of different

More information

Exact Algorithms Lecture 7: FPT Hardness and the ETH

Exact Algorithms Lecture 7: FPT Hardness and the ETH Exact Algorithms Lecture 7: FPT Hardness and the ETH February 12, 2016 Lecturer: Michael Lampis 1 Reminder: FPT algorithms Definition 1. A parameterized problem is a function from (χ, k) {0, 1} N to {0,

More information

V1.0: Seth Gilbert, V1.1: Steven Halim August 30, Abstract. d(e), and we assume that the distance function is non-negative (i.e., d(x, y) 0).

V1.0: Seth Gilbert, V1.1: Steven Halim August 30, Abstract. d(e), and we assume that the distance function is non-negative (i.e., d(x, y) 0). CS4234: Optimisation Algorithms Lecture 4 TRAVELLING-SALESMAN-PROBLEM (4 variants) V1.0: Seth Gilbert, V1.1: Steven Halim August 30, 2016 Abstract The goal of the TRAVELLING-SALESMAN-PROBLEM is to find

More information

P and NP (Millenium problem)

P and NP (Millenium problem) CMPS 2200 Fall 2017 P and NP (Millenium problem) Carola Wenk Slides courtesy of Piotr Indyk with additions by Carola Wenk CMPS 2200 Introduction to Algorithms 1 We have seen so far Algorithms for various

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

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/18/14

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/18/14 600.363 Introduction to Algorithms / 600.463 Algorithms I Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/18/14 23.1 Introduction We spent last week proving that for certain problems,

More information

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W.

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W. : Coping with NP-Completeness Course contents: Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems Reading: Chapter 34 Chapter 35.1, 35.2 Y.-W. Chang 1 Complexity

More information

8.1 Polynomial-Time Reductions

8.1 Polynomial-Time Reductions 8.1 Polynomial-Time Reductions Classify Problems According to Computational Requirements Q. Which problems will we be able to solve in practice? A working definition. Those with polynomial-time algorithms.

More information

The Subtour LP for the Traveling Salesman Problem

The Subtour LP for the Traveling Salesman Problem The Subtour LP for the Traveling Salesman Problem David P. Williamson Cornell University November 22, 2011 Joint work with Jiawei Qian, Frans Schalekamp, and Anke van Zuylen The Traveling Salesman Problem

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 29 Approximation Algorithms Load Balancing Weighted Vertex Cover Reminder: Fill out SRTEs online Don t forget to click submit Sofya Raskhodnikova 12/7/2016 Approximation

More information

Lecture 20: Satisfiability Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY

Lecture 20: Satisfiability Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY Lecture 20: Satisfiability Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Problem of the Day Suppose we are given

More information

arxiv: v2 [cs.cc] 29 Mar 2010

arxiv: v2 [cs.cc] 29 Mar 2010 On a variant of Monotone NAE-3SAT and the Triangle-Free Cut problem. arxiv:1003.3704v2 [cs.cc] 29 Mar 2010 Peiyush Jain, Microsoft Corporation. June 28, 2018 Abstract In this paper we define a restricted

More information

IPCO Location: Bonn, Germany Date: June 23 25,

IPCO Location: Bonn, Germany Date: June 23 25, IPCO 2014 Location: Bonn, Germany Date: June 23 25, 2014 www.or.uni-bonn.de/ipco 17th Conference on Integer Programming and Combinatorial Optimization Submission deadline: November 15, 2013 Program committee

More information

Reference Sheet for CO142.2 Discrete Mathematics II

Reference Sheet for CO142.2 Discrete Mathematics II Reference Sheet for CO14. Discrete Mathematics II Spring 017 1 Graphs Defintions 1. Graph: set of N nodes and A arcs such that each a A is associated with an unordered pair of nodes.. Simple graph: no

More information

Graphic TSP in cubic graphs

Graphic TSP in cubic graphs Graphic TSP in cubic graphs arxiv:1608.07568v2 [cs.dm] 30 Aug 2016 Zdeněk Dvořák Daniel Král Bojan Mohar Abstract We prove that every simple 2-connected cubic n-vertex graph contains a spanning closed

More information

Theorem 2.9: nearest addition algorithm

Theorem 2.9: nearest addition algorithm There are severe limits on our ability to compute near-optimal tours It is NP-complete to decide whether a given undirected =(,)has a Hamiltonian cycle An approximation algorithm for the TSP can be used

More information

COMP 355 Advanced Algorithms Approximation Algorithms: VC and TSP Chapter 11 (KT) Section (CLRS)

COMP 355 Advanced Algorithms Approximation Algorithms: VC and TSP Chapter 11 (KT) Section (CLRS) COMP 355 Advanced Algorithms Approximation Algorithms: VC and TSP Chapter 11 (KT) Section 35.1-35.2(CLRS) 1 Coping with NP-Completeness Brute-force search: This is usually only a viable option for small

More information

Optimal tour along pubs in the UK

Optimal tour along pubs in the UK 1 From Facebook Optimal tour along 24727 pubs in the UK Road distance (by google maps) see also http://www.math.uwaterloo.ca/tsp/pubs/index.html (part of TSP homepage http://www.math.uwaterloo.ca/tsp/

More information

Chapter 8. NP-complete problems

Chapter 8. NP-complete problems Chapter 8. NP-complete problems Search problems E cient algorithms We have developed algorithms for I I I I I finding shortest paths in graphs, minimum spanning trees in graphs, matchings in bipartite

More information

What Can We Do? CS125 Lecture 20 Fall 2014

What Can We Do? CS125 Lecture 20 Fall 2014 CS125 Lecture 20 Fall 2014 We have defined the class of NP-complete problems, which have the property that if there is a polynomial time algorithm for any one of these problems, there is a polynomial time

More information

Complexity Classes and Polynomial-time Reductions

Complexity Classes and Polynomial-time Reductions COMPSCI 330: Design and Analysis of Algorithms April 19, 2016 Complexity Classes and Polynomial-time Reductions Lecturer: Debmalya Panigrahi Scribe: Tianqi Song 1 Overview In this lecture, we introduce

More information

NP and computational intractability. Kleinberg and Tardos, chapter 8

NP and computational intractability. Kleinberg and Tardos, chapter 8 NP and computational intractability Kleinberg and Tardos, chapter 8 1 Major Transition So far we have studied certain algorithmic patterns Greedy, Divide and conquer, Dynamic programming to develop efficient

More information

Institute of Operating Systems and Computer Networks Algorithms Group. Network Algorithms. Tutorial 4: Matching and other stuff

Institute of Operating Systems and Computer Networks Algorithms Group. Network Algorithms. Tutorial 4: Matching and other stuff Institute of Operating Systems and Computer Networks Algorithms Group Network Algorithms Tutorial 4: Matching and other stuff Christian Rieck Matching 2 Matching A matching M in a graph is a set of pairwise

More information

NP-complete Reductions

NP-complete Reductions NP-complete Reductions 1. Prove that 3SAT P DOUBLE-SAT, i.e., show DOUBLE-SAT is NP-complete by reduction from 3SAT. The 3-SAT problem consists of a conjunction of clauses over n Boolean variables, where

More information

NP-Hard (A) (B) (C) (D) 3 n 2 n TSP-Min any Instance V, E Question: Hamiltonian Cycle TSP V, n 22 n E u, v V H

NP-Hard (A) (B) (C) (D) 3 n 2 n TSP-Min any Instance V, E Question: Hamiltonian Cycle TSP V, n 22 n E u, v V H Hard Problems What do you do when your problem is NP-Hard? Give up? (A) Solve a special case! (B) Find the hidden parameter! (Fixed parameter tractable problems) (C) Find an approximate solution. (D) Find

More information

Decision Problems. Observation: Many polynomial algorithms. Questions: Can we solve all problems in polynomial time? Answer: No, absolutely not.

Decision Problems. Observation: Many polynomial algorithms. Questions: Can we solve all problems in polynomial time? Answer: No, absolutely not. Decision Problems Observation: Many polynomial algorithms. Questions: Can we solve all problems in polynomial time? Answer: No, absolutely not. Definition: The class of problems that can be solved by polynomial-time

More information

Parameterized Approximation Schemes Using Graph Widths. Michael Lampis Research Institute for Mathematical Sciences Kyoto University

Parameterized Approximation Schemes Using Graph Widths. Michael Lampis Research Institute for Mathematical Sciences Kyoto University Parameterized Approximation Schemes Using Graph Widths Michael Lampis Research Institute for Mathematical Sciences Kyoto University July 11th, 2014 Visit Kyoto for ICALP 15! Parameterized Approximation

More information

Lecture 7: Counting classes

Lecture 7: Counting classes princeton university cos 522: computational complexity Lecture 7: Counting classes Lecturer: Sanjeev Arora Scribe:Manoj First we define a few interesting problems: Given a boolean function φ, #SAT is the

More information

More NP-complete Problems. CS255 Chris Pollett May 3, 2006.

More NP-complete Problems. CS255 Chris Pollett May 3, 2006. More NP-complete Problems CS255 Chris Pollett May 3, 2006. Outline More NP-Complete Problems Hamiltonian Cycle Recall a hamiltonian cycle is a permutation of the vertices v i_1,, v i_n of a graph G so

More information

Paired Approximation Problems and Incompatible Inapproximabilities David Eppstein

Paired Approximation Problems and Incompatible Inapproximabilities David Eppstein Paired Approximation Problems and Incompatible Inapproximabilities David Eppstein Cherries by Emma Rose Photos (CC-BY-NC), http://www.flickr.com/photos/29974980@n04/2814910772/ In a nutshell: Given two

More information

Approximation Algorithms

Approximation Algorithms 15-251: Great Ideas in Theoretical Computer Science Spring 2019, Lecture 14 March 5, 2019 Approximation Algorithms 1 2 SAT 3SAT Clique Hamiltonian- Cycle given a Boolean formula F, is it satisfiable? same,

More information

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance. Algorithm Design Patterns and Anti-Patterns 8. NP and Computational Intractability Algorithm design patterns. Ex.! Greed. O(n log n) interval scheduling.! Divide-and-conquer. O(n log n) FFT.! Dynamic programming.

More information

Approximation Algorithms

Approximation Algorithms Approximation Algorithms Subhash Suri June 5, 2018 1 Figure of Merit: Performance Ratio Suppose we are working on an optimization problem in which each potential solution has a positive cost, and we want

More information

Copyright 2000, Kevin Wayne 1

Copyright 2000, Kevin Wayne 1 Guessing Game: NP-Complete? 1. LONGEST-PATH: Given a graph G = (V, E), does there exists a simple path of length at least k edges? YES. SHORTEST-PATH: Given a graph G = (V, E), does there exists a simple

More information

P vs. NP. Simpsons: Treehouse of Horror VI

P vs. NP. Simpsons: Treehouse of Horror VI P vs. NP Simpsons: Treehouse of Horror VI Attribution These slides were prepared for the New Jersey Governor s School course The Math Behind the Machine taught in the summer of 2012 by Grant Schoenebeck

More information

1 Variations of the Traveling Salesman Problem

1 Variations of the Traveling Salesman Problem Stanford University CS26: Optimization Handout 3 Luca Trevisan January, 20 Lecture 3 In which we prove the equivalence of three versions of the Traveling Salesman Problem, we provide a 2-approximate algorithm,

More information

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch] NP Completeness Andreas Klappenecker [partially based on slides by Jennifer Welch] Overview We already know the following examples of NPC problems: SAT 3SAT We are going to show that the following are

More information

Parameterized Approximation Schemes Using Graph Widths. Michael Lampis Research Institute for Mathematical Sciences Kyoto University

Parameterized Approximation Schemes Using Graph Widths. Michael Lampis Research Institute for Mathematical Sciences Kyoto University Parameterized Approximation Schemes Using Graph Widths Michael Lampis Research Institute for Mathematical Sciences Kyoto University May 13, 2014 Overview Topic of this talk: Randomized Parameterized Approximation

More information

Basic Approximation algorithms

Basic Approximation algorithms Approximation slides Basic Approximation algorithms Guy Kortsarz Approximation slides 2 A ρ approximation algorithm for problems that we can not solve exactly Given an NP-hard question finding the optimum

More information

Reductions. Linear Time Reductions. Desiderata. Reduction. Desiderata. Classify problems according to their computational requirements.

Reductions. Linear Time Reductions. Desiderata. Reduction. Desiderata. Classify problems according to their computational requirements. Desiderata Reductions Desiderata. Classify problems according to their computational requirements. Frustrating news. Huge number of fundamental problems have defied classification for decades. Desiderata'.

More information

Graphs and Algorithms 2016

Graphs and Algorithms 2016 Graphs and Algorithms 2016 Teachers: Nikhil Bansal and Jesper Nederlof TA: Shashwat Garg (Office Hours: Thursday: Pick??) Webpage: www.win.tue.nl/~nikhil/courses/2wo08 (for up to date information, links

More information

Graphs and Algorithms 2015

Graphs and Algorithms 2015 Graphs and Algorithms 2015 Teachers: Nikhil Bansal and Jorn van der Pol Webpage: www.win.tue.nl/~nikhil/courses/2wo08 (for up to date information, links to reading material) Goal: Have fun with discrete

More information

An Experimental Evaluation of the Best-of-Many Christofides Algorithm for the Traveling Salesman Problem

An Experimental Evaluation of the Best-of-Many Christofides Algorithm for the Traveling Salesman Problem An Experimental Evaluation of the Best-of-Many Christofides Algorithm for the Traveling Salesman Problem David P. Williamson Cornell University Joint work with Kyle Genova, Cornell University July 14,

More information

Greedy algorithms Or Do the right thing

Greedy algorithms Or Do the right thing Greedy algorithms Or Do the right thing March 1, 2005 1 Greedy Algorithm Basic idea: When solving a problem do locally the right thing. Problem: Usually does not work. VertexCover (Optimization Version)

More information

Some Hardness Proofs

Some Hardness Proofs Some Hardness Proofs Magnus Lie Hetland January 2011 This is a very brief overview of some well-known hard (NP Hard and NP complete) problems, and the main ideas behind their hardness proofs. The document

More information

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch] NP Completeness Andreas Klappenecker [partially based on slides by Jennifer Welch] Dealing with NP-Complete Problems Dealing with NP-Completeness Suppose the problem you need to solve is NP-complete. What

More information

Introduction to Approximation Algorithms

Introduction to Approximation Algorithms Introduction to Approximation Algorithms Dr. Gautam K. Das Departmet of Mathematics Indian Institute of Technology Guwahati, India gkd@iitg.ernet.in February 19, 2016 Outline of the lecture Background

More information

Approximation Algorithms

Approximation Algorithms Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015 Approximation Algorithms Tamassia Approximation Algorithms 1 Applications One of

More information

Chapter 8. NP-complete problems. Search problems. cient algorithms. Exponential search space

Chapter 8. NP-complete problems. Search problems. cient algorithms. Exponential search space Chapter 8. NP-complete problems Search problems 1 / 64 2 / 64 E cient algorithms Exponential search space We have developed algorithms for finding shortest paths in graphs, minimum spanning trees in graphs,

More information

1 Definition of Reduction

1 Definition of Reduction 1 Definition of Reduction Problem A is reducible, or more technically Turing reducible, to problem B, denoted A B if there a main program M to solve problem A that lacks only a procedure to solve problem

More information

14 More Graphs: Euler Tours and Hamilton Cycles

14 More Graphs: Euler Tours and Hamilton Cycles 14 More Graphs: Euler Tours and Hamilton Cycles 14.1 Degrees The degree of a vertex is the number of edges coming out of it. The following is sometimes called the First Theorem of Graph Theory : Lemma

More information

A Simplied NP-complete MAXSAT Problem. Abstract. It is shown that the MAX2SAT problem is NP-complete even if every variable

A Simplied NP-complete MAXSAT Problem. Abstract. It is shown that the MAX2SAT problem is NP-complete even if every variable A Simplied NP-complete MAXSAT Problem Venkatesh Raman 1, B. Ravikumar 2 and S. Srinivasa Rao 1 1 The Institute of Mathematical Sciences, C. I. T. Campus, Chennai 600 113. India 2 Department of Computer

More information

A constant-factor approximation algorithm for the asymmetric travelling salesman problem

A constant-factor approximation algorithm for the asymmetric travelling salesman problem A constant-factor approximation algorithm for the asymmetric travelling salesman problem London School of Economics Joint work with Ola Svensson and Jakub Tarnawski cole Polytechnique F d rale de Lausanne

More information

Matching 4/21/2016. Bipartite Matching. 3330: Algorithms. First Try. Maximum Matching. Key Questions. Existence of Perfect Matching

Matching 4/21/2016. Bipartite Matching. 3330: Algorithms. First Try. Maximum Matching. Key Questions. Existence of Perfect Matching Bipartite Matching Matching 3330: Algorithms A graph is bipartite if its vertex set can be partitioned into two subsets A and B so that each edge has one endpoint in A and the other endpoint in B. A B

More information

8.1 Polynomial-Time Reductions

8.1 Polynomial-Time Reductions Algorithm Design Patterns and Anti-Patterns Analysis of Algorithms Algorithm design patterns. Ex. Greed. O(n 2 ) Dijkstra s SSSP (dense) Divide-and-conquer. O(n log n) FFT. Dynamic programming. O(n 2 )

More information

Introduction III. Graphs. Motivations I. Introduction IV

Introduction III. Graphs. Motivations I. Introduction IV Introduction I Graphs Computer Science & Engineering 235: Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu Graph theory was introduced in the 18th century by Leonhard Euler via the Königsberg

More information

Chapter 8. NP and Computational Intractability. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Chapter 8. NP and Computational Intractability. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. Chapter 8 NP and Computational Intractability Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. 1 Algorithm Design Patterns and Anti-Patterns Algorithm design patterns.

More information

Notes for Recitation 9

Notes for Recitation 9 6.042/18.062J Mathematics for Computer Science October 8, 2010 Tom Leighton and Marten van Dijk Notes for Recitation 9 1 Traveling Salesperson Problem Now we re going to talk about a famous optimization

More information

Chapter 10 Part 1: Reduction

Chapter 10 Part 1: Reduction //06 Polynomial-Time Reduction Suppose we could solve Y in polynomial-time. What else could we solve in polynomial time? don't confuse with reduces from Chapter 0 Part : Reduction Reduction. Problem X

More information

CMSC 451: Lecture 22 Approximation Algorithms: Vertex Cover and TSP Tuesday, Dec 5, 2017

CMSC 451: Lecture 22 Approximation Algorithms: Vertex Cover and TSP Tuesday, Dec 5, 2017 CMSC 451: Lecture 22 Approximation Algorithms: Vertex Cover and TSP Tuesday, Dec 5, 2017 Reading: Section 9.2 of DPV. Section 11.3 of KT presents a different approximation algorithm for Vertex Cover. Coping

More information

8 NP-complete problem Hard problems: demo

8 NP-complete problem Hard problems: demo Ch8 NPC Millennium Prize Problems http://en.wikipedia.org/wiki/millennium_prize_problems 8 NP-complete problem Hard problems: demo NP-hard (Non-deterministic Polynomial-time hard), in computational complexity

More information

NP-Completeness. Algorithms

NP-Completeness. Algorithms NP-Completeness Algorithms The NP-Completeness Theory Objective: Identify a class of problems that are hard to solve. Exponential time is hard. Polynomial time is easy. Why: Do not try to find efficient

More information