Using geometric information in Euclidean graph algorithms Paul Bouman Seminar Graph Drawing 17-10-2007.

Slides:



Advertisements
Similar presentations
Problem solving with graph search
Advertisements

AI Pathfinding Representing the Search Space
Instructor Neelima Gupta Table of Contents Approximation Algorithms.
Approximations of points and polygonal chains
 Distance Problems: › Post Office Problem › Nearest Neighbors and Closest Pair › Largest Empty and Smallest Enclosing Circle  Sub graphs of Delaunay.
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Traveling Salesman Problem By Susan Ott for 252. Overview of Presentation Brief review of TSP Examples of simple Heuristics Better than Brute Force Algorithm.
1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
Interactive Shortest Path An Image Segmentation Technique Jonathan-Lee Jones.
Convex Hull obstacle start end Convex Hull Convex Hull
S. J. Shyu Chap. 1 Introduction 1 The Design and Analysis of Algorithms Chapter 1 Introduction S. J. Shyu.
Combinatorial Algorithms
Computing the Fréchet Distance Between Folded Polygons
5/17/2015 1:32 AMConvex Hull1 obstacle start end.
Chapter 3 The Greedy Method 3.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
Randomized Planning for Short Inspection Paths Tim Danner and Lydia E. Kavraki 2000 Presented by David Camarillo CS326a: Motion Planning, Spring
1 Maximum matching Max Flow Shortest paths Min Cost Flow Linear Programming Mixed Integer Linear Programming Worst case polynomial time by Local Search.
Randomized Planning for Short Inspection Paths Tim Danner Lydia E. Kavraki Department of Computer Science Rice University.
Dynamic Programming Optimization Problems Dynamic Programming Paradigm
2-Layer Crossing Minimisation Johan van Rooij. Overview Problem definitions NP-Hardness proof Heuristics & Performance Practical Computation One layer:
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Randomized Planning for Short Inspection Paths Tim Danner and Lydia E. Kavraki 2000 Presented by Dongkyu, Choi On the day of 28 th May 2003 CS326a: Motion.
1 Integrality constraints Integrality constraints are often crucial when modeling optimizayion problems as linear programs. We have seen that if our linear.
GRAPH Learning Outcomes Students should be able to:
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
Busby, Dodge, Fleming, and Negrusa. Backtracking Algorithm Is used to solve problems for which a sequence of objects is to be selected from a set such.
Programming & Data Structures
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
The Traveling Salesperson Problem Algorithms and Networks.
Chapter 12 Coping with the Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Polynomially solvable cases of NP-hard problems
 Informally: In an art gallery with n paintings what is the optimal position for a camera?  Formally: Given a set of n points in the Euclidean space,
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
6.1 Hamilton Circuits and Paths: Hamilton Circuits and Paths: Hamilton Path: Travels to each vertex once and only once… Hamilton Path: Travels to each.
Approximation algorithms for TSP with neighborhoods in the plane R 郭秉鈞 R 林傳健.
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.
§1.4 Algorithms and complexity For a given (optimization) problem, Questions: 1)how hard is the problem. 2)does there exist an efficient solution algorithm?
Exhaustive Search. Brute Force Methods  guarantee best fitness value is found  feasible for ‘small’ data sets only.
Traveling Salesman Problem (TSP)
TSP – Upper Bounds and Lower Bounds Initial problem : Upper Bound A salesman based in Stockton needs to visit shops based in Darlington, Billingham, Middlesbrough,
Master Tour Routing Vladimir Deineko, Warwick Business School.
WK15. Vertex Cover and Approximation Algorithm By Lin, Jr-Shiun Choi, Jae Sung.
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
The Maximum Traveling Salesman Problem under Polyhedral Norms Alexander Barvinok, David S. Johnson, Gerhard J. Woeginger and Russell Woodroffe Integer.
Graph Algorithms GAM 376 Robin Burke Fall Outline Graphs Theory Data structures Graph search Algorithms DFS BFS Project #1 Soccer Break Lab.
Lecture 7 Jianjun Hu Department of Computer Science and Engineering University of South Carolina CSCE350 Algorithms and Data Structure.
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
Honors Track: Competitive Programming & Problem Solving Seminar Topics Kevin Verbeek.
Mathematical modeling To describe or represent a real-world situation quantitatively, in mathematical language.
1 Minimum Spanning Tree: Solving TSP for Metric Graphs using MST Heuristic Soheil Shafiee Shabnam Aboughadareh.
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
2.6 Solving Systems of Linear Inequalities
Integer Programming An integer linear program (ILP) is defined exactly as a linear program except that values of variables in a feasible solution have.
School of Computing Clemson University Fall, 2012
Hamiltonian Cycle and TSP
Chapter 3 Brute Force Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Graph Theory.
Genome Assembly.
3. Brute Force Selection sort Brute-Force string matching
3. Brute Force Selection sort Brute-Force string matching
Lecture 2 Geometric Algorithms.
Approximation Algorithms
3. Brute Force Selection sort Brute-Force string matching
Presentation transcript:

Using geometric information in Euclidean graph algorithms Paul Bouman Seminar Graph Drawing

Overview Euclidean graphs Shortest Paths Traveling Salesman A geometric approach Special cases of TSPs Conclusion Bibliography

Euclidean Graphs Vertices are point in a plane Edges have weight defined by distances in the plane Triangle Inequality Lower bound on path length

Shortest Paths Most important algorithms were discussed by Jesper Euclidean Distance can be used as an heuristic In case of A*: average time can became O(n) Important question: is function h admissable Interesting case: travel time instead of distance

Shortest Paths – A* Admissibility – The heuristic function may never overestimate the true distance to the destination When it does, A* will find an optimal solution With travel time, the average speed V is the important parameter

Shortest Paths Combining A* and bidirectional search may work nice Average computational time can become O(n) in Euclidean Graphs Layering approach can reduce shortest path queries below linear time

Traveling Salesman In eclidean space, the quandrangle inequality holds Because of this, a minimal TSP tour can’t cross itself

Traveling Salesman Lemma: If all cities lie on the boundary of a convex polygon, the optimal tour is a cyclic walk along the boundary of the polygon (in clockwise or counterclockwise direction) [4]

TSP: A geometric approach Work with partial tours 1. Start with the convex hull 2. Sequence a unsequenced city between two consecutive cities on the partial tour 3. While unsequenced cities: Repeat 2 4. Done

TSP: Determining a Convex Hull 1. Start with vertex h 1 with lowest x coordinate 2. Choose the largest angle in x 3. Choose an angle vertex as h 2 4. Look for vertex hi with biggest angle < h i-2,h i-1,h i 5. Repeat until the new h i = h 1

TSP: Determining a Convex Hull

Expanding the Partial Tour There are two possible techniques Largest Angle method Most eccentric ellipse method Methods don’t guarantee optimal solutions Improvements possible

Largest Angle Method For each internal vertex v, look at the angle α = <(u v w) with u and w consequent vertices on the partial tour When we have u,v,w such that α is maximized, insert v between u and w on the partial tour. Repeat until there are no internal vertices left

Largest Angle Method

Most Eccentric Ellipse Look at ellipse with focal points u and w, with a point v on the ellipse, where u and w are consecutive points on a partial path and v an internal vertex Look for the most eccentric ellipse defined by points u,v,w and add v between u and w on the partial tour.

Most Eccentric Ellipse

Single Point Insertion Test each point in the tour between each consecutive pair and see if the solution improves Start again when an improved tour is found Methods aren’t optimal: tours with crossings can be generated

Performance

Special Cases of TSPs Pyramidally solvable TSP cases A tour φ = (1, i 1, i 2, …, i r, n, j 1, j 2, … j n-r-2 ) is pyramidal if i 1 j 2 >…> j n-r-2 The number of pyramidal tours is exponential in n The minimum cost pyramidal tour can be found in O(n 2 ) time

Special Cases of TSPs Symmetric Demidenko Matrices c i,j + c j+1,l ≤ ci,j+1 + c j,l for all 1≤i<j< j+1<l ≤ n Symetric Kalmanson Matrices c i,j + c k,l ≤ c i,k + c j,l for all 1≤i<j<k<l≤n c i,l + c j,k ≤ c i,k + c j,l for all 1≤i<j<k<l ≤n

Special Cases of TSPs

The k-line TSP has cities on k (almost) parallel lines. Cutler created an O(n 3 ) time and O(n 2 ) space algorithm for the k=3 case Rote generalized this to O(n k ) time Convex Hull and Line: O(n 2 ) time and O(n) space Open problem: x-and-y axes TSP

Special Cases of TSPs

Conclusion In euclidean space, some graph problems can be solved more easily Shortest Path problems can be solved most efficiently by layering techniques TSP problems in the plane can be solved to a rather good extend using geometric notions Some special cases of TSP problems can be solved in polynomial time

Bibliography [1] Heuristic shortest path algorithms for transportation applications: State of the art, L. Fu, D. Sun, L.R. Rilett (1995) [2] Hoorcollegeslides Zoekalgoritmen, Linda van der Gaag [3] Heuristic for the Hamiltonian Path Problem in Euclidian Two Space, J. P. Norback; R. F. Love (1979) [4] Well-solvable special cases of the traveling salesman problem: a survey, Rainer E. Burkard, Vladimir G. Deineko, René van Dal, Jack A. A. van der Veen, Gerhard J. Woeginger (1998) [5] Geometric approaches to solving the traveling salesman problem, John P. Norback, Robert F. Love (1977)