University of Texas at Arlington Srikanth Vadada Kishan Kumar B P Fall 2010 - CSE 5311 Solving Travelling Salesman Problem for Metric Graphs using MST.

Slides:



Advertisements
Similar presentations
Weighted Matching-Algorithms, Hamiltonian Cycles and TSP
Advertisements

Instructor Neelima Gupta Table of Contents Approximation Algorithms.
Design and Analysis of Algorithms Approximation algorithms for NP-complete problems Haidong Xue Summer 2012, at GSU.
Great Theoretical Ideas in Computer Science for Some.
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 ( )
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Combinatorial Algorithms
Lecture 21 Approximation Algorithms Introduction.
Approximating Graphic TSP with Matchings
Great Theoretical Ideas in Computer Science.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
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 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.
An Euler Circuit is a cycle of an undirected graph, that traverses every edge of the graph exactly once, and ends at the same node from which it began.
Approximation Algorithms for the Traveling Salesperson Problem.
Vertex cover problem S  V such that for every {u,v}  E u  S or v  S (or both)
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Algorithms for Network Optimization Problems This handout: Minimum Spanning Tree Problem Approximation Algorithms Traveling Salesman Problem.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
The Traveling Salesperson Problem Algorithms and Networks.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Chapter 12 Coping with the Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
The Traveling Salesman Problem Approximation
1 The TSP : NP-Completeness Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell.
Graph Theory Topics to be covered:
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
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.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Projects Network Theory VLSI PSM 1. Network 1. Steiner trees
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Lecture19: Graph III Bohyung Han CSE, POSTECH CSED233: Data Structures (2014F)
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.
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Approximation Algorithms for TSP Tsvi Kopelowitz 1.
1 Travelling Salesman Problem Algorithms and Networks 2015/2016 Hans L. Bodlaender Johan M. M. van Rooij.
AND.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Approximation Algorithms Guo QI, Chen Zhenghai, Wang Guanhua, Shen Shiqi, Himeshi De Silva.
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.
Fleury's Algorithm Euler Circuit Algorithm
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
1 Minimum Spanning Tree: Solving TSP for Metric Graphs using MST Heuristic Soheil Shafiee Shabnam Aboughadareh.
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Approximation Algorithms
Lecture 2-2 NP Class.
School of Computing Clemson University Fall, 2012
Approximation Algorithms
Hamiltonian Cycle and TSP
Hamiltonian Cycle and TSP
Great Theoretical Ideas in Computer Science
Approximation Algorithms
Approximation Algorithms
Approximation Algorithms for TSP
Genome Assembly.
Richard Anderson Lecture 28 Coping with NP-Completeness
The Traveling Salesperson Problem
Approximation Algorithms
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

University of Texas at Arlington Srikanth Vadada Kishan Kumar B P Fall CSE 5311 Solving Travelling Salesman Problem for Metric Graphs using MST Heuristic

University of Texas at Arlington Presentation Outline TSP Problem Overview TSP Approximation Algorithms Project Modules Project Demo

University of Texas at Arlington TSP Problem Overview TSP is a Graph Problem Where a salesman wishes to make a tour,or Hamiltonian Cycle Visiting each city exactly once and Finishing at the city he starts from With the Lowest Path Cost TSP is a NP Complete Problem Optimum Solution can be from a Brute force approach Metric TSP Complete Graph TSP that satisfies the triangle inequality Approximation Algorithms for Metric TSP 2 - approximation algorithm approximation algorithm (Christofides Algorithm) Both algorithms use MST as the basic step

University of Texas at Arlington 2 Approximation Algorithm Approximation Algorithm 1 1. Construct Minimum Spanning Tree 2. Creating a Cycle (MST Euler Tour) 3. Remove Redundant Visits Using Triangle Inequality 4. Wt (Approx) <= 2 * Wt(OPT) S M S E S B C B S A S Euler Path S M E B C A S TSP Cost - 64 M A B C S E M - Opt TSP Cost - 54

University of Texas at Arlington 1.5 Approximation (Christofides Algorithm) Approximation Algorithm 2 1. Construct Minimum Spanning Tree 2. Take G restricted to odd degree vertices in MST as Subgraph G* 3Minimum Wt Matching M* on G* 4H = Union M* with MST 5Eulerian Tour of H 6Use Triangle Inequality to get Sol. 7. Wt (Approx) <= 1.5 * Wt(OPT) M A B C S E M - Opt TSP Cost - 54

University of Texas at Arlington Project Modules 1.Functional Logic Kruskal’s Algorithm for MST (For 2 & 1.5 approx) Optimal TSP – Brute Force Method (For 2 & 1.5 approx) Finding Euler Cycle – Fleury’s Algorithm (For 2 & 1.5 approx) Minimum Weight Matching – Edmond’s Algorithm (For 1.5 approx ) Finding Short Circuit Path (For 2 & 1.5 approx) 2.GUI Form based Interface

University of Texas at Arlington GUI Design Core Java for Business Logic & Visual Basic Forms for GUI

University of Texas at Arlington References [1]. [2]. [3]. [4].

University of Texas at Arlington A Q & Questions ?

University of Texas at Arlington Time Complexity for 2 Approximation Algorithm : MST of G, use Kruskal’s or Prim’s Algorithm - O(E log V ). Finding a closed eulerian trail - O( E) using Fleury’s Algorithm Overall time complexity for 2 Approximation Algorithm - O( E log V ) Time Complexity for 1.5 Approximation Algorithm : MST of G, use Kruskal’s or Prim’s Algorithm - O(E log V ). Edmond’s Blossom Shrinking Algorithm and runs in O( V 3 ) Finding a closed eulerian trail - O(E) using Fleury’s Algorithm Overall time complexity for 1.5 Approximation Algorithm - O( V 3 ) Extra Slides for Reference - 1

University of Texas at Arlington Proof for Approx 2 Algorithm : Illegal Tour = 2 MST Wt (Legal Tour) <= 2 MST Wt (Optimal Tour) >= MST Wt (Legal Tour) <= 2 Optimal Tour Extra Slides for Reference - 2

University of Texas at Arlington Proof for Christofides Algorithm : A - Length of the tour computed by the Christofides Heuristic OPT - Optimal tour MST - Minimum Spanning Tree MOM - Minimum odd-vertex matching. The graph T U M, and therefore any Euler tour of T U M, has total length MST +MOM. By the triangle inequality, taking a shortcut past a previously visited vertex can only shorten the tour. Thus A <= MST +MOM. By the triangle inequality, the optimal tour of the odd-degree vertices of T cannot be longer than OPT. Any cycle passing through of the odd vertices can be partitioned into two perfect matchings,by alternately coloring the edges of the cycle red and green. One of these two matchings has length at most OPT/2. On the other hand, both matchings have length at least MOM. Thus, MOM <= OPT/2. Finally, recall our earlier observation that MST <= OPT. Putting these three inequalities together, we conclude that A <= 1.5 OPT Extra Slides for Reference - 3

University of Texas at Arlington Fleury's Algorithm 1. pick any vertex to start 2. from that vertex pick an edge to traverse (see below for important rule) 3. darken that edge, as a reminder that you can't traverse it again 4. travel that edge, coming to the next vertex 5. repeat 2-4 until all edges have been traversed, and you are back at the starting vertex Extra Slides for Reference - 4

University of Texas at Arlington D E M O