Traveling Salesman. Given G = (V,V V), find simple cycle C = (v 1,v 2,...,v n,v 1 ) such that n = V and (u,v) C d(u,v) is minimized.
|
|
- Barnard Atkins
- 6 years ago
- Views:
Transcription
1 Sanders/van Stee: Approximations- und Online-Algorithmen 1 Traveling Salesman Given G = (V,V V), find simple cycle C = (v 1,v 2,...,v n,v 1 ) such that n = V and (u,v) C d(u,v) is minimized.
2 Sanders/van Stee: Approximations- und Online-Algorithmen 2 Wiederholung Approximationsalgorithmen Online-Algorithmen NP-harte Probleme Unvollständige Informationen suchen gute Lösung suchen gute Lösung Approximationsverhältnis Kompetitivitätsverhältnis Polynomialzeit evtl. exponentielle Zeit TSP, Rucksack, online TSP, Rucksack,... Lastverteilung,... Paging, Ski rental,...
3 Sanders/van Stee: Approximations- und Online-Algorithmen 3 Theorem 1. It is NP-hard to approximate the general TSP within any factor α. Proof. Reduction from Hamilton Cycle... Hamilton Cycle Problem: Given a graph decide whether it contains a simple cycle visiting all nodes
4 Sanders/van Stee: Approximations- und Online-Algorithmen 4 Proof We want to find a Hamilton Cycle in G = (V,E). Consider G = (V,V V) and the weight function d(u,v) = 1 if (u,v) E αn else Suppose G has a Hamilton cycle. Then there is a Hamilton cycle of weight n in G an α-approx. algorithm delivers one with weight αn If there is no Hamilton cycle in G, every Hamilton Cycle in G has weight αn+n 1> αn.
5 Sanders/van Stee: Approximations- und Online-Algorithmen 5 Proof (continued) Assume that there exists an α-approximation algorithm for TSP. Decision algorithm: Run α-approx TSP on G Solution has weight αn Hamilton path exists Else there is no Hamilton cycle. [e.g. Vazirani Theorem 3.6]
6 Sanders/van Stee: Approximations- und Online-Algorithmen 6 Metric TSP G is undirected and obeys the triangle inequality u,v,w V : d(u,w) d(u,v)+d(v,w) Metric completion Consider any connected undirected graph G = (V,E) with weight function c : E R +. Define d(u,v) := shortest path distance from u to v Example: (undirected) street graphs distance table
7 Sanders/van Stee: Approximations- und Online-Algorithmen 7 2-Approximation by MST Lemma 2. The total weight of an MST The total weight of any TSP tour Algorithm: T := MST(G) // weight(t) opt
8 Sanders/van Stee: Approximations- und Online-Algorithmen 8 2-Approximation by MST Lemma 2. The total weight of an MST The total weight of any TSP tour Algorithm: T := MST(G) T := T with every edge doubled // weight(t) opt // weight(t ) 2opt
9 Sanders/van Stee: Approximations- und Online-Algorithmen 9 2-Approximation by MST Lemma 2. The total weight of an MST The total weight of any TSP tour Algorithm: T := MST(G) T := T with every edge doubled T := EulerTour(T ) // weight(t) opt // weight(t ) 2opt // weight(t ) 2opt
10 Sanders/van Stee: Approximations- und Online-Algorithmen 10 2-Approximation by MST Lemma 2. The total weight of an MST The total weight of any TSP tour Algorithm: T := MST(G) T := T with every edge doubled T := EulerTour(T ) output removeduplicates(t ) // weight(t) opt // weight(t ) 2opt // weight(t ) 2opt // shortcutting Exercise: Implementation in timeo (m+nlogn) where m is number of edges before metric completion
11 Sanders/van Stee: Approximations- und Online-Algorithmen 11 Example LateX is soinput totally idiotic that weight: it requires a full 1line 2of white doubled text before it will MST put the figures right side up.
12 Sanders/van Stee: Approximations- und Online-Algorithmen 12 Example input weight: 1 2 LateX is so totally idiotic that it requires a full line of white text before it will put the figures right side up. weight MST
13 Sanders/van Stee: Approximations- und Online-Algorithmen 13 Example input weight: 1 2 doubled MST LateX is so totally idiotic that it requires a full line of white text before it will put the figures right side up. 2 4 MST
14 Sanders/van Stee: Approximations- und Online-Algorithmen 14 Example input weight: 1 2 doubled MST LateX is so totally idiotic that it requires a full line of white text before it will put the figures right side up weight 10 MST Euler tour
15 Sanders/van Stee: Approximations- und Online-Algorithmen 15 Example input weight: 1 2 doubled MST output LateX is so totally idiotic that it requires a full line of white text before it will put the figures right side up weight 10 4 MST Euler tour
16 Sanders/van Stee: Approximations- und Online-Algorithmen 16 Example input weight: 1 2 doubled MST output LateX is so totally idiotic that it requires a full line of white text before it will put the figures right side up weight 10 4 MST Euler tour optimal weight: 6
17 Sanders/van Stee: Approximations- und Online-Algorithmen 17 Proof of Lemma 2 Lemma 2: The total weight of an MST The total weight of any TSP tour Proof: Let T denote the optimal TSP tour remove one edge from T now T is a spanning tree which is no lighter than the MST makes T lighter General Technique: Relaxation here: a TSP path is a special case of a spanning tree
18 Sanders/van Stee: Approximations- und Online-Algorithmen 18 More on TSP Practically better 2-approximations, e.g. lightest edge first Relatively simple yet unpractical 3/2-approximation PTAS for Euclidean TSP Guinea pig for just about any optimization heuristics Optimal solutions for practical instances. Rule of thumb: If it fits in memory it can be solved. [ lines of code is six digit number TSP-like applications are usually more complicated
19 Sanders/van Stee: Approximations- und Online-Algorithmen 19 Online TSP Metric space Algorithms move with speed at most 1 Requests appear over time Future requests are unknown Minimize finishing time (makespan)
20 Sanders/van Stee: Approximations- und Online-Algorithmen 20 Online TSP What is the worst that can happen to an online algorithm? Algorithm is at location X Request occurs somewhere very far away from it, at Y Optimal solution is to serve it immediately No further requests arrive Algorithm still needs to move to Y: high competitive ratio
21 Sanders/van Stee: Approximations- und Online-Algorithmen 21 Online TSP However... The optimal solution must have had enough time to travel to Y before the request arrives It started at the origin, like the online algorithm Idea: do not move too far from the origin Close enough = within a factor of time elapsed
22 Sanders/van Stee: Approximations- und Online-Algorithmen 22 Algorithm Return Home (RH) Whenever a new request arrives, return to O at full speed In O, calculate optimal tour for requests that appeared so far Follow this tour at maximum speed such that distance to O is at most ( 2 1)t at time t, for all t
23 Sanders/van Stee: Approximations- und Online-Algorithmen 23 Theorem 3. Return Home has a competitive ratio of 2+1. Let t be the time at which the last request arrives. Clearly opt t. If RH does not slow down after time t, it needs time at most t +( 2 1)t + opt ( 2+1)opt let the last request for which RH slows down be a distance x from the origin. RH serves it at time x/( 2 1) = ( 2+1)x. RH serves remainder of tour (T x ) at full speed. We have opt = x+t x and RH is ready at time ( 2+1)x+T x ( 2+1)opt
24 Sanders/van Stee: Approximations- und Online-Algorithmen 24 Theorem 3. Return Home has a competitive ratio of 2+1. Let t be the time at which the last request arrives. Clearly opt t. If RH does not slow down after time t, it needs time at most t +( 2 1)t + opt ( 2+1)opt) Else, let the last request for which RH slows down be a distance x from the origin. RH serves it at time x/( 2 1) = ( 2+1)x. RH serves remainder of tour (T x ) at full speed. We have opt x+t x and RH is ready at time ( 2+1)x+T x ( 2+1)opt
25 Sanders/van Stee: Approximations- und Online-Algorithmen 25 Theorem 3. Return Home has a competitive ratio of 2+1. Let t be the time at which the last request arrives. Clearly opt t. If RH does not slow down after time t, it needs time at most t +( 2 1)t + opt ( 2+1)opt) Else, let the last request for which RH slows down be a distance x from the origin. RH serves it at time x/( 2 1) = ( 2+1)x. RH serves remainder of tour (T x ) at full speed. We have opt = x+t x and RH is ready at time ( 2+1)x+T x ( 2+1)opt
26 Sanders/van Stee: Approximations- und Online-Algorithmen 26 Remarks about RH Uses exponential time to calculate optimal tour Nevertheless, leaves O immediately after arriving there Theoretical result More reasonable: use some approximation algorithm in O Competitive ratio increases Time for serving requests should be much longer than time needed to calculate approximate tour
27 Sanders/van Stee: Approximations- und Online-Algorithmen 27 Steiner Trees [C. F. Gauss 18??] Given G = (V,E), with positive edge weights cost : E R + V = R F, i.e., Required vertices and Steiner vertices find a minimum cost tree T E that connects all required vertices weight: 1 2 u,v R : T contains a u-v path THE network design problem
28 Sanders/van Stee: Approximations- und Online-Algorithmen 28 Metric Steiner Trees Find Steiner tree in complete graph with triangle inequality u,v,w V : d(u,w) d(u,v)+d(v,w) Easier? No!
29 Sanders/van Stee: Approximations- und Online-Algorithmen 29 Approximation Factor Preserving Reduction Steiner Tree of G? Metric Steiner Tree of G? Complete the graph G. u,v V : cost(u,v) := shortest path distance between u and v weight: 1 2 we only add edges. Hence, opt(g ) opt(g). Now consider any Steiner tree I G. We construct a Steiner tree I G with cost(i) cost(i ): replace edges paths remove edges from cycles
30 Sanders/van Stee: Approximations- und Online-Algorithmen 30 Examples From Metric Steiner Tree to Steiner Tree weight: 1 2
31 Sanders/van Stee: Approximations- und Online-Algorithmen 31 2-Approximation by MST G weight: 1 2 Given metric graph G = (R F,E) Find MST T of subgraph G R induced by R T* Theorem 4. cost(t) 2opt Proof: consider optimal solution T (cost(t ) = opt)) double edges of T find Euler tour B (cost(b) = 2opt) use shortcuts to obtain Hamilton cycle H (cost(h) cost(b) = 2opt). drop heaviest edge. Now H is a spanning tree of G R cost(mst) cost(h) cost(b) = 2opt
32 Sanders/van Stee: Approximations- und Online-Algorithmen 32 2-Approximation by MST G weight: 1 2 Given metric graph G = (R F,E) Find MST T of subgraph G R induced by R T* Theorem 4. cost(t) 2opt Proof: consider optimal solution T (cost(t ) = opt)) double edges of T find Euler tour B (cost(b) = 2opt) use shortcuts to obtain Hamilton cycle H (cost(h) cost(b) = 2opt). drop heaviest edge. Now H is a spanning tree of G R cost(mst) cost(h) cost(b) = 2opt
33 Sanders/van Stee: Approximations- und Online-Algorithmen 33 2-Approximation by MST G weight: 1 2 Given metric graph G = (R F,E) Find MST T of subgraph G R induced by R T* Theorem 4. cost(t) 2opt Proof: consider optimal solution T (cost(t ) = opt)) double edges of T find Euler tour B (cost(b) = 2opt) use shortcuts to obtain Hamilton cycle H B (cost(h) cost(b) = 2opt). drop heaviest edge. Now H is a spanning tree of G R cost(mst) cost(h) cost(b) = 2opt
34 Sanders/van Stee: Approximations- und Online-Algorithmen 34 2-Approximation by MST G weight: 1 2 Given metric graph G = (R F,E) Find MST T of subgraph G R induced by R T* Theorem 4. cost(t) 2opt Proof: consider optimal solution T (cost(t ) = opt)) double edges of T find Euler tour B (cost(b) = 2opt) use shortcuts to obtain Hamilton cycle H (cost(h) cost(b) = 2opt). drop heaviest edge. Now H is a spanning tree of G R H cost(mst) cost(h) cost(b) = 2opt B
35 Sanders/van Stee: Approximations- und Online-Algorithmen 35 Tight Example weight: G T* MST cost(t ) = 4,cost(MST) = 6. More general: R = n cost(t ) = n, cost(mst) = (2 ε)(n 1)
36 Sanders/van Stee: Approximations- und Online-Algorithmen 36 Fast Implementation Theorem 5. MST(G R ) can be computed in timeo (m+nlogn) where m, n refer to the graph before metric completion. [K. Mehlhorn, A Faster Approximation Algorithm for the Steiner Problem in Graphs, Information Processing Letters 27(1988) ]
37 Sanders/van Stee: Approximations- und Online-Algorithmen 37 The Graph Voronoi Diagram Voronoi diagram of a set of points R in the plane: Assign each point in the plane to its closest point in R. Here, assign each node v V to its closest required node s(v) R. Use shortest path distance d. break ties arbitrarily weight: 1 2
38 Sanders/van Stee: Approximations- und Online-Algorithmen 38 Computing the Graph Voronoi Diagram Solve single source shortest path problem from s 0 in G 0 := ({s 0 } R F,E {(s 0,v) : v R}) where the new edges have zero weight. s0 TimeO (m+nlogn) (Dijkstra s Algorihm using Fibonacci heaps)
39 Sanders/van Stee: Approximations- und Online-Algorithmen 39 (Yet another) Auxiliary Graph G 1 := (R,E 1 ) where (u,v) E 1 if (u,v ) E such that u is assigned to u and v is assigned to v in the graph Voronoi diagram of G. cost (u,v):= d(u,u )+cost(u,v )+d(v,v). Can be computed in linear time from shortest path tree in G 0
40 Sanders/van Stee: Approximations- und Online-Algorithmen 40 Finishing Up build G 1 from G //O (m+nlogn) G 2 := MST(G 1 ) //O (m+nlogn) G 3 := G 2 with edges replaced by shortest paths in G //O (m+n) G 4 := MST(G 3 ) // omittable while v F :v is a leaf of G 4 do // [Floren 91] remove the edge leading to v in G 4 return G 4
41 Sanders/van Stee: Approximations- und Online-Algorithmen 41 Lemma 6. MST(G 1 ) = MST(G R ) Why this is not obvious: 3 We assume wlog that all the MSTs are unique (no equal edge weights)
42 Sanders/van Stee: Approximations- und Online-Algorithmen 42 Lemma: MST(G 1 ) = MST(G R ) Proof: Assume G 2 = MST(G 1 ) MST(G R ) Case A: (s,t) E 2 but (s,t) E 1 Case B: (s,t) E 2 with cost (s,t) > d(s,t) 3
43 Sanders/van Stee: Approximations- und Online-Algorithmen 43 Proof Let s = v 0,...v i,v i+1,...,v k = t denote shortest s t path. If s(v i ) s(v i+1 ) we have (s(v i ),s(v i+1 )) E 1. d(s(v i ),s(v i+1 )) cost (s(v i ),s(v i+1 )) d(s(v i ),v i )+cost(v i,v i+1 )+d(v i+1,s(v i+1 )) d(s,v i )+cost(v i,v i+1 )+d(v i+1,t) = d(s,t) < cost (s,t) (case B only) remove (s,t) from E 2 G 2 gets disconnected i : s(v i ),s(v i+1 ) are in different components. E 2 \ {(s,t)} {(s(v i ),s(v i+1 ))} different MST s(v ) i s(v ) i+1 s t
44 Sanders/van Stee: Approximations- und Online-Algorithmen 44 More on Steiner trees Complicated Approximation down to 1.55 [Robins and Zelikovsky 00] Optimal solutions for large practical instances. [PhD Polzin,Daneshmand, 2003, Dortmund, Mannheim, MPII-SB] Many applications: multicasting in networks, VLSI design(?), phylogeny reconstruction
45 Sanders/van Stee: Approximations- und Online-Algorithmen 45 Directed Steiner Trees Theorem 7. It is hard to approximate the directed Steiner tree problem within a factor ln R. Proof by approximation preserving reduction from the set covering problem
46 Sanders/van Stee: Approximations- und Online-Algorithmen 46 The Set Covering Problem Given universe U, subsetss = {S 1,...,S k }, cost function c :S N. Find minimum costs S such that [ S = U S S Theorem 8. It is hard to approximate the set covering problem within a factor ln U. [Feige 98]
47 Sanders/van Stee: Approximations- und Online-Algorithmen 47 Approximation Preserving Reduction: Directed Steiner Tree from Set Covering r S U V = {r} S U E = {(r,s) : S S } cost c(s) {(S,u) : S S,u S} cost 0.
ABHELSINKI UNIVERSITY OF TECHNOLOGY
Approximation Algorithms Seminar 1 Set Cover, Steiner Tree and TSP Siert Wieringa siert.wieringa@tkk.fi Approximation Algorithms Seminar 1 1/27 Contents Approximation algorithms for: Set Cover Steiner
More informationBounds on the Traveling Salesman Problem
Bounds on the Traveling Salesman Problem Sean Zachary Roberson Texas A&M University MATH 613, Graph Theory A common routing problem is as follows: given a collection of stops (for example, towns, stations,
More informationCS/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 informationNP-Completeness. Until now we have been designing algorithms for specific problems
NP-Completeness 1 Introduction Until now we have been designing algorithms for specific problems We have seen running times O(log n), O(n), O(n log n), O(n 2 ), O(n 3 )... We have also discussed lower
More informationJuly 18, Approximation Algorithms (Travelling Salesman Problem)
Approximation Algorithms (Travelling Salesman Problem) July 18, 2014 The travelling-salesman problem Problem: given complete, undirected graph G = (V, E) with non-negative integer cost c(u, v) for each
More informationData Structures in Java
Data Structures in Java Lecture 21: Introduction to NP-Completeness 12/9/2015 Daniel Bauer Algorithms and Problem Solving Purpose of algorithms: find solutions to problems. Data Structures provide ways
More informationBin packing and scheduling
Sanders/van Stee: Approximations- und Online-Algorithmen 1 Bin packing and scheduling Overview Bin packing: problem definition Simple 2-approximation (Next Fit) Better than 3/2 is not possible Asymptotic
More informationApproximation Algorithms for Re-optimization
Approximation Algorithms for Re-optimization DRAFT PLEASE DO NOT CITE Dean Alderucci Table of Contents 1.Introduction... 2 2.Overview of the Current State of Re-Optimization Research... 3 2.1.General Results
More informationAlgorithms 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 information2 Notation and Preliminaries
On Asymmetric TSP: Transformation to Symmetric TSP and Performance Bound Ratnesh Kumar Haomin Li epartment of Electrical Engineering University of Kentucky Lexington, KY 40506-0046 Abstract We show that
More informationA New Approximation Algorithm for the Asymmetric TSP with Triangle Inequality By Markus Bläser
A New Approximation Algorithm for the Asymmetric TSP with Triangle Inequality By Markus Bläser Presented By: Chris Standish chriss@cs.tamu.edu 23 November 2005 1 Outline Problem Definition Frieze s Generic
More informationDecision Problems TSP. Instance: A complete graph G with non-negative edge costs, and an integer
Decision Problems The theory of NP-completeness deals only with decision problems. Why? Because if a decision problem is hard, then the corresponding optimization problem must be hard too. For example,
More informationNP-Complete Problems and Approximation Algorithms
NP-Complete Problems and Approximation Algorithms Efficiency of Algorithms Algorithms that have time efficiency of O(n k ), that is polynomial of the input size, are considered to be tractable or easy
More informationA simple LP relaxation for the Asymmetric Traveling Salesman Problem
A simple LP relaxation for the Asymmetric Traveling Salesman Problem Thành Nguyen Cornell University, Center for Applies Mathematics 657 Rhodes Hall, Ithaca, NY, 14853,USA thanh@cs.cornell.edu Abstract.
More informationDiscrete Optimization 2010 Lecture 12 TSP, SAT & Outlook
Discrete Optimization 2010 Lecture 12 TSP, SAT & Outlook Marc Uetz University of Twente m.uetz@utwente.nl Lecture 12: sheet 1 / 29 Marc Uetz Discrete Optimization Outline TSP Randomization Outlook 1 Approximation
More informationAlgorithm Design Strategies V
Algorithm Design Strategies V Joaquim Madeira Version 0.0 October 2016 U. Aveiro, October 2016 1 Overview The 0-1 Knapsack Problem Revisited The Fractional Knapsack Problem Greedy Algorithms Example Coin
More informationGraduate 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 informationCS 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 informationEasy Problems vs. Hard Problems. CSE 421 Introduction to Algorithms Winter Is P a good definition of efficient? The class P
Easy Problems vs. Hard Problems CSE 421 Introduction to Algorithms Winter 2000 NP-Completeness (Chapter 11) Easy - problems whose worst case running time is bounded by some polynomial in the size of the
More informationNetwork Design and Game Theory Spring 2008 Lecture 6
Network Design and Game Theory Spring 2008 Lecture 6 Guest Lecturer: Aaron Archer Instructor: Mohammad T. Hajiaghayi Scribe: Fengming Wang March 3, 2008 1 Overview We study the Primal-dual, Lagrangian
More informationDiscrete Optimization 2010 Lecture 12 TSP, SAT & Outlook
TSP Randomization Outlook Discrete Optimization 2010 Lecture 12 TSP, SAT & Outlook Marc Uetz University of Twente m.uetz@utwente.nl Lecture 12: sheet 1 / 29 Marc Uetz Discrete Optimization Outline TSP
More informationBranch-and-Bound for the Travelling Salesman Problem
Branch-and-Bound for the Travelling Salesman Problem Leo Liberti LIX, École Polytechnique, F-91128 Palaiseau, France Email:liberti@lix.polytechnique.fr March 15, 2011 Contents 1 The setting 1 1.1 Graphs...............................................
More informationNP Completeness and Approximation Algorithms
Chapter 10 NP Completeness and Approximation Algorithms Let C() be a class of problems defined by some property. We are interested in characterizing the hardest problems in the class, so that if we can
More informationACO Comprehensive Exam October 14 and 15, 2013
1. Computability, Complexity and Algorithms (a) Let G be the complete graph on n vertices, and let c : V (G) V (G) [0, ) be a symmetric cost function. Consider the following closest point heuristic for
More informationVIII. 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 informationCHAPTER 3 FUNDAMENTALS OF COMPUTATIONAL COMPLEXITY. E. Amaldi Foundations of Operations Research Politecnico di Milano 1
CHAPTER 3 FUNDAMENTALS OF COMPUTATIONAL COMPLEXITY E. Amaldi Foundations of Operations Research Politecnico di Milano 1 Goal: Evaluate the computational requirements (this course s focus: time) to solve
More informationDesign and Analysis of Algorithms May 12, 2011 Massachusetts Institute of Technology. Practice Final Exam. Problem Title Points Parts Grade Initials
Design and Analysis of Algorithms May 12, 2011 Massachusetts Institute of Technology 6.046J/18.410J Profs. Dana Moshkovitz and Bruce Tidor Practice Final Exam Practice Final Exam Do not open this quiz
More informationApproximability of Connected Factors
Approximability of Connected Factors Kamiel Cornelissen 1, Ruben Hoeksma 1, Bodo Manthey 1, N. S. Narayanaswamy 2, and C. S. Rahul 2 1 University of Twente, Enschede, The Netherlands {k.cornelissen, r.p.hoeksma,
More informationWorst Case Performance of Approximation Algorithm for Asymmetric TSP
Worst Case Performance of Approximation Algorithm for Asymmetric TSP Anna Palbom Department of Numerical Analysis and Computer Science Royal Institute of Technology S-100 44 Stockholm, Sweden E-mail: annap@nada.kth.se
More informationCheck off these skills when you feel that you have mastered them. Write in your own words the definition of a Hamiltonian circuit.
Chapter Objectives Check off these skills when you feel that you have mastered them. Write in your own words the definition of a Hamiltonian circuit. Explain the difference between an Euler circuit and
More informationThe Knapsack Problem. n items with weight w i N and profit p i N. Choose a subset x of items
Sanders/van Stee: Approximations- und Online-Algorithmen 1 The Knapsack Problem 10 15 W n items with weight w i N and profit p i N Choose a subset x of items Capacity constraint i x w i W wlog assume i
More informationRecent Progress in Approximation Algorithms for the Traveling Salesman Problem
Recent Progress in Approximation Algorithms for the Traveling Salesman Problem Lecture 4: s-t path TSP for graph TSP David P. Williamson Cornell University July 18-22, 2016 São Paulo School of Advanced
More informationOnline algorithms December 13, 2007
Sanders/van Stee: Approximations- und Online-Algorithmen 1 Online algorithms December 13, 2007 Information is revealed to the algorithm in parts Algorithm needs to process each part before receiving the
More informationMore Approximation Algorithms
CS 473: Algorithms, Spring 2018 More Approximation Algorithms Lecture 25 April 26, 2018 Most slides are courtesy Prof. Chekuri Ruta (UIUC) CS473 1 Spring 2018 1 / 28 Formal definition of approximation
More informationScheduling and Optimization Course (MPRI)
MPRI Scheduling and optimization: lecture p. /6 Scheduling and Optimization Course (MPRI) Leo Liberti LIX, École Polytechnique, France MPRI Scheduling and optimization: lecture p. /6 Teachers Christoph
More informationBalancing Minimum Spanning Trees and Multiple-Source Minimum Routing Cost Spanning Trees on Metric Graphs
Balancing Minimum Spanning Trees and Multiple-Source Minimum Routing Cost Spanning Trees on Metric Graphs Chung-Ming Lin Yin Te Tsai Chuan Yi Tang Abstract The building cost of a spanning tree is the sum
More informationWeek Cuts, Branch & Bound, and Lagrangean Relaxation
Week 11 1 Integer Linear Programming This week we will discuss solution methods for solving integer linear programming problems. I will skip the part on complexity theory, Section 11.8, although this is
More informationApproximation Algorithms
Approximation Algorithms What do you do when a problem is NP-complete? or, when the polynomial time solution is impractically slow? assume input is random, do expected performance. Eg, Hamiltonian path
More informationOn the Role of Partition Inequalities in Classical Algorithms for Steiner Problems in Graphs
On the Role of Partition Inequalities in Classical Algorithms for Steiner Problems in Graphs by Kunlun Tan A thesis presented to the University of Waterloo in fulfillment of the thesis requirement for
More informationSome Algebra Problems (Algorithmic) CSE 417 Introduction to Algorithms Winter Some Problems. A Brief History of Ideas
Some Algebra Problems (Algorithmic) CSE 417 Introduction to Algorithms Winter 2006 NP-Completeness (Chapter 8) Given positive integers a, b, c Question 1: does there exist a positive integer x such that
More informationTopic: Intro, Vertex Cover, TSP, Steiner Tree Date: 1/23/2007
CS880: Approximations Algorithms Scribe: Michael Kowalczyk Lecturer: Shuchi Chawla Topic: Intro, Vertex Cover, TSP, Steiner Tree Date: 1/23/2007 Today we discuss the background and motivation behind studying
More informationfrom notes written mostly by Dr. Matt Stallmann: All Rights Reserved
CSC 505, Fall 000: Week 0 Objectives: understand problem complexity and classes defined by it understand relationships among decision, witness, evaluation, and optimization problems understand what it
More informationCS 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 informationNP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University
NP-Completeness CptS 223 Advanced Data Structures Larry Holder School of Electrical Engineering and Computer Science Washington State University 1 Hard Graph Problems Hard means no known solutions with
More informationNotes for Lecture 21
U.C. Berkeley CS170: Intro to CS Theory Handout N21 Professor Luca Trevisan November 20, 2001 Notes for Lecture 21 1 Tractable and Intractable Problems So far, almost all of the problems that we have studied
More informationLecture 11. Single-Source Shortest Paths All-Pairs Shortest Paths
Lecture. Single-Source Shortest Paths All-Pairs Shortest Paths T. H. Cormen, C. E. Leiserson and R. L. Rivest Introduction to, rd Edition, MIT Press, 009 Sungkyunkwan University Hyunseung Choo choo@skku.edu
More informationDifferential approximation results for the Steiner tree problem
Differential approximation results for the Steiner tree problem Marc Demange, Jérôme Monnot, Vangelis Paschos To cite this version: Marc Demange, Jérôme Monnot, Vangelis Paschos. Differential approximation
More informationCS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs. Instructor: Shaddin Dughmi
CS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs Instructor: Shaddin Dughmi Outline 1 Introduction 2 Shortest Path 3 Algorithms for Single-Source Shortest
More informationResearch Collection. Grid exploration. Master Thesis. ETH Library. Author(s): Wernli, Dino. Publication Date: 2012
Research Collection Master Thesis Grid exploration Author(s): Wernli, Dino Publication Date: 2012 Permanent Link: https://doi.org/10.3929/ethz-a-007343281 Rights / License: In Copyright - Non-Commercial
More informationICS 252 Introduction to Computer Design
ICS 252 fall 2006 Eli Bozorgzadeh Computer Science Department-UCI References and Copyright Textbooks referred [Mic94] G. De Micheli Synthesis and Optimization of Digital Circuits McGraw-Hill, 1994. [CLR90]
More informationNew Integer Programming Formulations of the Generalized Travelling Salesman Problem
American Journal of Applied Sciences 4 (11): 932-937, 2007 ISSN 1546-9239 2007 Science Publications New Integer Programming Formulations of the Generalized Travelling Salesman Problem Petrica C. Pop Department
More informationNP-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 informationCompetitive Concurrent Distributed Queuing
Competitive Concurrent Distributed Queuing Maurice Herlihy Srikanta Tirthapura Roger Wattenhofer Brown University Brown University Microsoft Research Providence RI 02912 Providence RI 02912 Redmond WA
More informationContents Lecture 4. Greedy graph algorithms Dijkstra s algorithm Prim s algorithm Kruskal s algorithm Union-find data structure with path compression
Contents Lecture 4 Greedy graph algorithms Dijkstra s algorithm Prim s algorithm Kruskal s algorithm Union-find data structure with path compression Jonas Skeppstedt (jonasskeppstedt.net) Lecture 4 2018
More informationNP-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 informationApproximation Algorithms for Asymmetric TSP by Decomposing Directed Regular Multigraphs
Approximation Algorithms for Asymmetric TSP by Decomposing Directed Regular Multigraphs Haim Kaplan Tel-Aviv University, Israel haimk@post.tau.ac.il Nira Shafrir Tel-Aviv University, Israel shafrirn@post.tau.ac.il
More informationToday s Outline. CS 362, Lecture 24. The Reduction. Hamiltonian Cycle. Reduction Wrapup Approximation algorithms for NP-Hard Problems
Today s Outline CS 362, Lecture 24 Jared Saia University of New Mexico Reduction Wrapup Approximation algorithms for NP-Hard Problems 1 Hamiltonian Cycle The Reduction A Hamiltonian Cycle in a graph is
More informationChapter 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 informationSome Algebra Problems (Algorithmic) CSE 417 Introduction to Algorithms Winter Some Problems. A Brief History of Ideas
CSE 417 Introduction to Algorithms Winter 2007 Some Algebra Problems (Algorithmic) Given positive integers a, b, c Question 1: does there exist a positive integer x such that ax = c? NP-Completeness (Chapter
More informationTractable & Intractable Problems
Tractable & Intractable Problems We will be looking at : What is a P and NP problem NP-Completeness The question of whether P=NP The Traveling Salesman problem again Programming and Data Structures 1 Polynomial
More informationOptimization Prof. A. Goswami Department of Mathematics Indian Institute of Technology, Kharagpur. Lecture - 20 Travelling Salesman Problem
Optimization Prof. A. Goswami Department of Mathematics Indian Institute of Technology, Kharagpur Lecture - 20 Travelling Salesman Problem Today we are going to discuss the travelling salesman problem.
More informationDiscrete Optimization 2010 Lecture 8 Lagrangian Relaxation / P, N P and co-n P
Discrete Optimization 2010 Lecture 8 Lagrangian Relaxation / P, N P and co-n P Marc Uetz University of Twente m.uetz@utwente.nl Lecture 8: sheet 1 / 32 Marc Uetz Discrete Optimization Outline 1 Lagrangian
More informationNP-Complete Problems. More reductions
NP-Complete Problems More reductions Definitions P: problems that can be solved in polynomial time (typically in n, size of input) on a deterministic Turing machine Any normal computer simulates a DTM
More informationGeometric Steiner Trees
Geometric Steiner Trees From the book: Optimal Interconnection Trees in the Plane By Marcus Brazil and Martin Zachariasen Part 3: Computational Complexity and the Steiner Tree Problem Marcus Brazil 2015
More informationarxiv: v2 [cs.ds] 4 Oct 2011
13 9-approximation for Graphic TSP Marcin Mucha Institute of Informatics, University of Warsaw, Poland mucha@mimuw.edu.pl arxiv:1108.1130v2 [cs.ds] 4 Oct 2011 Abstract The Travelling Salesman Problem is
More informationRelaxations and Bounds. 6.1 Optimality and Relaxations. Suppose that we are given an IP. z = max c T x : x X,
6 Relaxations and Bounds 6.1 Optimality and Relaxations Suppose that we are given an IP z = max c T x : x X, where X = x : Ax b,x Z n and a vector x X which is a candidate for optimality. Is there a way
More informationDesign and Analysis of Algorithms
Design and Analysis of Algorithms CSE 5311 Lecture 22 All-Pairs Shortest Paths Junzhou Huang, Ph.D. Department of Computer Science and Engineering CSE5311 Design and Analysis of Algorithms 1 All Pairs
More informationGraph Theory and Optimization Computational Complexity (in brief)
Graph Theory and Optimization Computational Complexity (in brief) Nicolas Nisse Inria, France Univ. Nice Sophia Antipolis, CNRS, I3S, UMR 7271, Sophia Antipolis, France September 2015 N. Nisse Graph Theory
More informationMathematics for Decision Making: An Introduction. Lecture 8
Mathematics for Decision Making: An Introduction Lecture 8 Matthias Köppe UC Davis, Mathematics January 29, 2009 8 1 Shortest Paths and Feasible Potentials Feasible Potentials Suppose for all v V, there
More informationOnline bin packing 24.Januar 2008
Rob van Stee: Approximations- und Online-Algorithmen 1 Online bin packing 24.Januar 2008 Problem definition First Fit and other algorithms The asymptotic performance ratio Weighting functions Lower bounds
More information8 Priority Queues. 8 Priority Queues. Prim s Minimum Spanning Tree Algorithm. Dijkstra s Shortest Path Algorithm
8 Priority Queues 8 Priority Queues A Priority Queue S is a dynamic set data structure that supports the following operations: S. build(x 1,..., x n ): Creates a data-structure that contains just the elements
More informationProblem Complexity Classes
Problem Complexity Classes P, NP, NP-Completeness and Complexity of Approximation Joshua Knowles School of Computer Science The University of Manchester COMP60342 - Week 2 2.15, March 20th 2015 In This
More informationLimitations of Algorithm Power
Limitations of Algorithm Power Objectives We now move into the third and final major theme for this course. 1. Tools for analyzing algorithms. 2. Design strategies for designing algorithms. 3. Identifying
More informationIncreasing the Span of Stars
Increasing the Span of Stars Ning Chen Roee Engelberg C. Thach Nguyen Prasad Raghavendra Atri Rudra Gynanit Singh Department of Computer Science and Engineering, University of Washington, Seattle, WA.
More informationON COST MATRICES WITH TWO AND THREE DISTINCT VALUES OF HAMILTONIAN PATHS AND CYCLES
ON COST MATRICES WITH TWO AND THREE DISTINCT VALUES OF HAMILTONIAN PATHS AND CYCLES SANTOSH N. KABADI AND ABRAHAM P. PUNNEN Abstract. Polynomially testable characterization of cost matrices associated
More informationCS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs. Instructor: Shaddin Dughmi
CS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs Instructor: Shaddin Dughmi Outline 1 Introduction 2 Shortest Path 3 Algorithms for Single-Source
More informationExercises NP-completeness
Exercises NP-completeness Exercise 1 Knapsack problem Consider the Knapsack problem. We have n items, each with weight a j (j = 1,..., n) and value c j (j = 1,..., n) and an integer B. All a j and c j
More informationarxiv:cs/ v1 [cs.cc] 7 Sep 2006
Approximation Algorithms for the Bipartite Multi-cut problem arxiv:cs/0609031v1 [cs.cc] 7 Sep 2006 Sreyash Kenkre Sundar Vishwanathan Department Of Computer Science & Engineering, IIT Bombay, Powai-00076,
More informationDominating Set. Chapter 7
Chapter 7 Dominating Set In this chapter we present another randomized algorithm that demonstrates the power of randomization to break symmetries. We study the problem of finding a small dominating set
More informationSI545 VLSI CAD: Logic to Layout. Algorithms
SI545 VLSI CAD: Logic to Layout Algorithms Announcements TA for this course LeileiWang, wangll@shanghaitech.edu.cn Office hour: 1:30-:30pm, Thurs., 301@H. Course page on Piazza References and Copyright
More informationHamiltonian Graphs Graphs
COMP2121 Discrete Mathematics Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5) [O1 Abstract Concepts] [O2 Proof Techniques] [O3 Basic Analysis Techniques] 1 Hamiltonian Paths and Circuits [O1] A Hamiltonian
More information5. Complexity Theory
Course: Combinatorial Optimisation DOCUMENT LAST MODIFIED: MARCH 2, 2011 VU University Amsterdam 5. Complexity Theory Guido Schäfer March 2011 These lecture notes cover the material of the lectures given
More informationApproximating the minimum quadratic assignment problems
Approximating the minimum quadratic assignment problems Refael Hassin Asaf Levin Maxim Sviridenko Abstract We consider the well-known minimum quadratic assignment problem. In this problem we are given
More information15.081J/6.251J Introduction to Mathematical Programming. Lecture 24: Discrete Optimization
15.081J/6.251J Introduction to Mathematical Programming Lecture 24: Discrete Optimization 1 Outline Modeling with integer variables Slide 1 What is a good formulation? Theme: The Power of Formulations
More informationAlgorithm Design and Analysis
Algorithm Design and Analysis LECTURE 8 Greedy Algorithms V Huffman Codes Adam Smith Review Questions Let G be a connected undirected graph with distinct edge weights. Answer true or false: Let e be the
More informationNP-complete problems. CSE 101: Design and Analysis of Algorithms Lecture 20
NP-complete problems CSE 101: Design and Analysis of Algorithms Lecture 20 CSE 101: Design and analysis of algorithms NP-complete problems Reading: Chapter 8 Homework 7 is due today, 11:59 PM Tomorrow
More informationAlgorithms: COMP3121/3821/9101/9801
NEW SOUTH WALES Algorithms: COMP3121/3821/9101/9801 Aleks Ignjatović School of Computer Science and Engineering University of New South Wales LECTURE 9: INTRACTABILITY COMP3121/3821/9101/9801 1 / 29 Feasibility
More informationCS 580: Algorithm Design and Analysis
CS 580: Algorithm Design and Analysis Jeremiah Blocki Purdue University Spring 2018 Reminder: Homework 1 due tonight at 11:59PM! Recap: Greedy Algorithms Interval Scheduling Goal: Maximize number of meeting
More informationSingle Source Shortest Paths
CMPS 00 Fall 015 Single Source Shortest Paths Carola Wenk Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk 1 Paths in graphs Consider a digraph G = (V, E) with an edge-weight
More informationFINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016)
FINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016) The final exam will be on Thursday, May 12, from 8:00 10:00 am, at our regular class location (CSI 2117). It will be closed-book and closed-notes, except
More informationLecture 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 informationarxiv: v1 [cs.ds] 25 Jan 2015
TSP with Time Windows and Service Time Yossi Azar Adi Vardi August 20, 2018 arxiv:1501.06158v1 [cs.ds] 25 Jan 2015 Abstract We consider TSP with time windows and service time. In this problem we receive
More informationAlgorithms. Outline! Approximation Algorithms. The class APX. The intelligence behind the hardware. ! Based on
6117CIT - Adv Topics in Computing Sci at Nathan 1 Algorithms The intelligence behind the hardware Outline! Approximation Algorithms The class APX! Some complexity classes, like PTAS and FPTAS! Illustration
More informationP,NP, NP-Hard and NP-Complete
P,NP, NP-Hard and NP-Complete We can categorize the problem space into two parts Solvable Problems Unsolvable problems 7/11/2011 1 Halting Problem Given a description of a program and a finite input, decide
More informationAlgorithms and Theory of Computation. Lecture 19: Class P and NP, Reduction
Algorithms and Theory of Computation Lecture 19: Class P and NP, Reduction Xiaohui Bei MAS 714 October 29, 2018 Nanyang Technological University MAS 714 October 29, 2018 1 / 26 Decision Problems Revisited
More informationECS122A 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 information1 Heuristics for the Traveling Salesman Problem
Praktikum Algorithmen-Entwurf (Teil 9) 09.12.2013 1 1 Heuristics for the Traveling Salesman Problem We consider the following problem. We want to visit all the nodes of a graph as fast as possible, visiting
More informationNP-Completeness. ch34 Hewett. Problem. Tractable Intractable Non-computable computationally infeasible super poly-time alg. sol. E.g.
NP-Completeness ch34 Hewett Problem Tractable Intractable Non-computable computationally infeasible super poly-time alg. sol. E.g., O(2 n ) computationally feasible poly-time alg. sol. E.g., O(n k ) No
More informationHow hard is it to find a good solution?
How hard is it to find a good solution? Simons Institute Open Lecture November 4, 2013 Research Area: Complexity Theory Given a computational problem, find an efficient algorithm that solves it. Goal of
More informationLecture 4. 1 Estimating the number of connected components and minimum spanning tree
CS 59000 CTT Current Topics in Theoretical CS Aug 30, 2012 Lecturer: Elena Grigorescu Lecture 4 Scribe: Pinar Yanardag Delul 1 Estimating the number of connected components and minimum spanning tree In
More information