Hamiltonian Cycle and TSP

Slides:



Advertisements
Similar presentations
Instructor Neelima Gupta Table of Contents Approximation Algorithms.
Advertisements

Design and Analysis of Algorithms Approximation algorithms for NP-complete problems Haidong Xue Summer 2012, at GSU.
Greedy Algorithms Spanning Trees Chapter 16, 23. What makes a greedy algorithm? Feasible –Has to satisfy the problem’s constraints Locally Optimal –The.
Approximation Algorithms for TSP
1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
NP-Complete Problems Polynomial time vs exponential time
Convex Hull(35.3) Convex Hull, CH(X), is the smallest convex polygon containing all points from X, |X|=n Different methods: –incremental: moving from left.
Combinatorial Algorithms
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
Approximation Algorithms: Concepts Approximation algorithm: An algorithm that returns near-optimal solutions (i.e. is "provably good“) is called an approximation.
Approximation Algorithms1. 2 Outline and Reading Approximation Algorithms for NP-Complete Problems (§13.4) Approximation ratios Polynomial-Time Approximation.
Approximation Algorithms Lecture for CS 302. What is a NP problem? Given an instance of the problem, V, and a ‘certificate’, C, we can verify V is in.
1 Approximation Algorithms CSC401 – Analysis of Algorithms Lecture Notes 18 Approximation Algorithms Objectives: Typical NP-complete problems Approximation.
Approximation Algorithms for the Traveling Salesperson Problem.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
1 NP-Complete Problems Polynomial time vs exponential time –Polynomial O(n k ), where n is the input size (e.g., number of nodes in a graph, the length.
NP-Complete Problems (Fun part)
Vertex cover problem S  V such that for every {u,v}  E u  S or v  S (or both)
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Approximation Algorithms Ola Svensson. Course Information Goal: – Learn the techniques used by studying famous applications Graduate Course FDD
1 NP-Complete Problems (Fun part) Polynomial time vs exponential time –Polynomial O(n k ), where n is the input size (e.g., number of nodes in a graph,
Approximation Algorithms
Homework solution Problem 2. The number of odd degree vertices in a graph is even. (recom. book: G. Harary: Graph Theory) Solution: Let G=(V,E,w) S= 
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
The Traveling Salesman Problem Approximation
University of Texas at Arlington Srikanth Vadada Kishan Kumar B P Fall CSE 5311 Solving Travelling Salesman Problem for Metric Graphs using MST.
NP-Completeness: 3D Matching
1 The TSP : NP-Completeness Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Advanced Algorithm Design and Analysis (Lecture 13) SW5 fall 2004 Simonas Šaltenis E1-215b
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Approximation Algorithms These lecture slides are adapted from CLRS.
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Projects Network Theory VLSI PSM 1. Network 1. Steiner trees
WK15. Vertex Cover and Approximation Algorithm By Lin, Jr-Shiun Choi, Jae Sung.
1 Approximation Algorithm Updated on 2012/12/25. 2 Approximation Algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Approximation Algorithms for TSP Tsvi Kopelowitz 1.
EMIS 8373: Integer Programming Combinatorial Relaxations and Duals Updated 8 February 2005.
Steiner Tree Problem Given: A set S of points in the plane = terminals
Approximation Algorithms
Approximation Algorithms by bounding the OPT Instructor Neelima Gupta
Instructor Neelima Gupta Table of Contents Introduction to Approximation Algorithms Factor 2 approximation algorithm for TSP Factor.
1 Minimum Spanning Tree: Solving TSP for Metric Graphs using MST Heuristic Soheil Shafiee Shabnam Aboughadareh.
11/30/2006 Travelling Salesman Problem Sebastian Dittmann COSC 6111 Advanced Design and Analysis of Algorithms.
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
Approximation Algorithms
Richard Anderson Lectures NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
An introduction to Approximation Algorithms Presented By Iman Sadeghi
Approximation Algorithms
Richard Anderson Lecture 26 NP-Completeness
Hamiltonian Cycle and TSP
Great Theoretical Ideas in Computer Science
Approximation Algorithms
Approximation Algorithms
Graph Algorithm.
Approximation Algorithms for TSP
Homework solution Problem 2. The number of odd degree vertices in a graph is even. (recom. book: G. Harary: Graph Theory) Solution: Let G=(V,E,w) S=vVdeg(v)
Genome Assembly.
Richard Anderson Lecture 28 NP-Completeness
Richard Anderson Lecture 28 Coping with NP-Completeness
Approximation Algorithms
Minimum Spanning Trees
Richard Anderson Lecture 26 NP-Completeness
ICS 353: Design and Analysis of Algorithms
Approximation Algorithms
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

Hamiltonian Cycle and TSP given an undirected graph G find a tour which visits each point exactly once Traveling Salesperson Problem given a positive weighted undirected graph G (with triangle inequality = can make shortcuts) find a shortest tour which visits all the vertices HC and TSP are NPC NPC problems: SP, ISP, MCP, VCP, SCP, HC, TSP

Approximation Algorithms (37.0) When problem is in NPC try to find approximate solution in polynomial-time Performance Bound = Approximation Ratio (APR) (worst-case performance) Let I be an instance of a minimization problem Let OPT(I) be cost of the minimum solution for instance I Let ALG(I) be cost of solution for instance I given by approximate algorithm ALG APR(ALG) = max I {ALG(I) / OPT(I)} APR for maximization problem = max I {ALG(I) / OPT(I)}

Vertex Cover Problem (37.1) Find the least number of vertices covering all edges Greedy Algorithm: while there are edges add the vertex of maximum degree delete all covered edges 2-VC Algorithm: add the both ends of an edge APR of 2-VC is at most 2 e1, e2, ..., ek - edges chosen by 2-VC the optimal vertex cover has 1 endpoint of ei 2-VC outputs 2k vertices while optimum  k

2-approximation TSP (37.2) Given a graph G with positive weights Find a shortest tour which visits all vertices Triangle inequality w(a,b) + w(b,c)  w(a,c) 2-MST algorithm: Find the minimum spanning tree MST(G) Take MST(G) twice: T = 2  MST(G) The graph T is Eulerian - we can traverse it visiting each edge exactly once Make shortcuts APR of 2-MST is at most 2 MST weight  weight of optimum tour any tour is a spanning tree, MST is the minimum

3/2-approximation TSP (Manber) Matching Problem (in P) given weighted complete (all edges) graph with even # vertecies find a matching (pairwise disjoint edges) of minimum weight Christofides’s Algorithm (ChA) find MST(G) for odd degree vertices find minimum matching M output shortcutted T = MST(G) + M APR of ChA is at most 3/2 |MST|  OPT |M|  OPT/2 |T|  (3/2) OPT odd

Non-approximable TSP (37.2) Approximating TSP w/o triangle inequality is NPC any c-approximation algorithm can solve Hamiltonian Cycle Problem in polynomial time Take an instance of HCP = graph G Assign weight 0 to any edge of G Complete G up to complete graph G’ Assign weight 1 to each new edge c-approximate tour can use only 0-edges - so it gives Hamiltonian cycle of G