Tools for Planar Networks Grigorios Prasinos and Christos Zaroliagis CTI/University of Patras 3 rd Amore Research Seminar – Oegstgeest, The Netherlands,

Slides:



Advertisements
Similar presentations
Bellman-Ford algorithm
Advertisements

Single Source Shortest Paths
Dynamic Graph Algorithms - I
1 Constructing Splits Graphs Author: Andreas W.M. Dress Daniel H. Huson Presented by: Bakhtiyar Uddin.
1 A Faster Approximation Algorithm For The Steiner Problem In Graphs Kurt Mehlhorn. Information Processing Letters, 27(3):125–128, 高等演算法二
CS138A Single Source Shortest Paths Peter Schröder.
Design and Analysis of Algorithms Single-source shortest paths, all-pairs shortest paths Haidong Xue Summer 2012, at GSU.
CSE 101- Winter ‘15 Discussion Section January 26th 2015.
Chapter 25: All-Pairs Shortest-Paths
Introduction To Algorithms CS 445 Discussion Session 8 Instructor: Dr Alon Efrat TA : Pooja Vaswani 04/04/2005.
Multi-Source Shortest Paths T. Patrick Bailey CSC 5408 Graph Theory 4/28/2008.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
PLANAR SHORTEST PATH & R-DIVISIONS Dwyane George March 10, 2015.
All Pairs Shortest Paths and Floyd-Warshall Algorithm CLRS 25.2
Tirgul 12 Algorithm for Single-Source-Shortest-Paths (s-s-s-p) Problem Application of s-s-s-p for Solving a System of Difference Constraints.
Chapter 9 Graph algorithms. Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
CSE 421 Algorithms Richard Anderson Dijkstra’s algorithm.
Shortest Paths Definitions Single Source Algorithms –Bellman Ford –DAG shortest path algorithm –Dijkstra All Pairs Algorithms –Using Single Source Algorithms.
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
Shortest Path Problems Directed weighted graph. Path length is sum of weights of edges on path. The vertex at which the path begins is the source vertex.
Chapter 9 Graph algorithms Lec 21 Dec 1, Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
1 Advanced Algorithms All-pairs SPs DP algorithm Floyd-Warshall alg.
Tracking Moving Objects in Anonymized Trajectories Nikolay Vyahhi 1, Spiridon Bakiras 2, Panos Kalnis 3, and Gabriel Ghinita 3 1 St. Petersburg State University.
Tirgul 13. Unweighted Graphs Wishful Thinking – you decide to go to work on your sun-tan in ‘ Hatzuk ’ beach in Tel-Aviv. Therefore, you take your swimming.
Greedy Algorithms Like dynamic programming algorithms, greedy algorithms are usually designed to solve optimization problems Unlike dynamic programming.
All-Pairs Shortest Paths
Approximate Distance Oracles for Geometric Spanner Networks Joachim Gudmundsson TUE, Netherlands Christos Levcopoulos Lund U., Sweden Giri Narasimhan Florida.
Minimum Spanning Trees. Subgraph A graph G is a subgraph of graph H if –The vertices of G are a subset of the vertices of H, and –The edges of G are a.
TECH Computer Science Graph Optimization Problems and Greedy Algorithms Greedy Algorithms  // Make the best choice now! Optimization Problems  Minimizing.
Shortest Path Problems Dijkstra’s Algorithm TAT ’01 Michelle Wang.
Dynamic Single-source Shortest Paths Camil Demetrescu University of Rome “La Sapienza”
5/27/03CSE Shortest Paths CSE Algorithms Shortest Paths Problems.
A Simple Parallel Algorithm for the Single-Source Shortest Path Problem on Planar Digraphs Authors: Jesper L. Traff and Christos D. Zaroliagis Citation:
Chapter 6 Graph Theory R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001.
Single Source Shortest-Path: The General Case (with negative edges) Bellman-Ford algorithm. Iteratively relax all edges |V|-1 times Running time? O(VE).
Efficient Route Computation on Road Networks Based on Hierarchical Communities Qing Song, Xiaofan Wang Department of Automation, Shanghai Jiao Tong University,
1 The Floyd-Warshall Algorithm Andreas Klappenecker.
All-pairs Shortest Paths. p2. The structure of a shortest path: All subpaths of a shortest path are shortest paths. p : a shortest path from vertex i.
Kruskal’s and Dijkstra’s Algorithm.  Kruskal's algorithm is an algorithm in graph theory that finds a minimum spanning tree for a connected weighted.
Shortest Path Problems Dijkstra’s Algorithm. Introduction Many problems can be modeled using graphs with weights assigned to their edges: Airline flight.
Shortest Path Algorithms. Definitions Variants  Single-source shortest-paths problem: Given a graph, finding a shortest path from a given source.
Flows in Planar Graphs Hadi Mahzarnia. Outline O Introduction O Planar single commodity flow O Multicommodity flows for C 1 O Feasibility O Algorithm.
A deterministic near-linear time algorithm for finding minimum cuts in planar graphs Thank you, Steve, for presenting it for us!!! Parinya Chalermsook.
Data Structures and Algorithms in Parallel Computing Lecture 2.
The Manhattan Tourist Problem Shane Wood 4/29/08 CS 329E.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Lecture 16: Graph Theory III Discrete Mathematical Structures: Theory and Applications.
Introduction to Algorithms All-Pairs Shortest Paths My T. UF.
Algorithms for hard problems Parameterized complexity Bounded tree width approaches Juris Viksna, 2015.
ALITHEIA: Towards Practical Verifiable Graph Processing Yupeng Zhang, Charalampos Papamanthou and Jonathan Katz University of Maryland.
Polygon Triangulation
Certifying Algorithms [MNS11]R.M. McConnell, K. Mehlhorn, S. Näher, P. Schweitzer. Certifying algorithms. Computer Science Review, 5(2), , 2011.
Algorithms for Finding Distance-Edge-Colorings of Graphs
What is the next line of the proof?
Shortest Path Problems
Greedy Algorithms / Dijkstra’s Algorithm Yin Tat Lee
Graph.
Lecture 6 Shortest Path Problem.
Shortest Path Problems
Md. Abul Kashem, Chowdhury Sharif Hasan, and Anupam Bhattacharjee
Shortest Path Algorithms
Analysis of Algorithms
Algorithms (2IL15) – Lecture 7
Haitao Wang Utah State University SoCG 2017, Brisbane, Australia
Dynamic Graph Algorithms
Shortest Path Problems
Sorting and Divide-and-Conquer
Parallel Graph Algorithms
Treewidth meets Planarity
Analysis of Algorithms
Presentation transcript:

Tools for Planar Networks Grigorios Prasinos and Christos Zaroliagis CTI/University of Patras 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Outline of the talk Planar Separator Theorem Mehlhorn & Schmidt SSSP Algorithm –Theory, Implementation, Experimental Results Frederickson’s SSSP Algorithm –Theory, Implementation, Experimental Results Conclusions

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Planar Separator Theorem – Lipton and Tarjan Input: A graph G=(V, E) and a function that maps nodes to weights Goal of theorem: find sets V 1, V 2, S where and S separates V 1 from V 2 (where and ) Applications: Shortest paths, Flows etc.

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Shortest Paths in Planar Networks – Approach 1 (Mehlhorn and Schmidt) Use the Planar Separator Theorem to partition the graph in sets V 1, S, V 2. Let and N i be the graph induced by nodes for i=1,2. Compute shortest paths sp i (s,v) for Use this computation to transform weights in V i to non-negative (Edmond-Karps)

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Shortest Paths in Planar Networks – Approach 1 (Mehlhorn and Schmidt) Compute shortest paths sp i (t,v) for Construct graph where

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Shortest Paths in Planar Networks – Approach 1 (Mehlhorn and Schmidt) Compute for For all output Use the algorithm recursively to compute the shortest paths in the induced subgraphs Running time

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Mehlhorn and Schmidt - Implementation Problem: Subgraphs must be connected in all recursion levels Solution: –Make the graph bidirected at the beginning –When constructing subgraphs make them connected by joining a pair of random nodes from each pair of consecutive connected components

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Mehlhorn and Schmidt – Experimental Setup LEDA 4.1, g Athlon XP 1800+, 512MB DDR RAM g++ flags: -O2 -fexpensive-optimizations Graphs: –Complete planar –Grids –Graphs where number of edges is m=2n

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Mehlhorn and Schmidt – Experimental Setup Weights: –Uniformly random integers in [0,10000] –Random integers in [-10000,10000] Generating negative weights without negative cycles: –For each node assign a potential in [0,10000] –For each edge choose a cost in [0,10000] –For each edge e=(u,v) set w(e)=pot(u)+c(e)-pot(v)

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Mehlhorn and Schmidt – Experimental Setup The algorithm of Mehlhorn and Schmidt handles negative weights so we compare it with Bellman-Ford Time complexities: –Mehlhorn and Schmidt: O(n 1.5 logn) –Bellman-Ford: O(n 2 ) (for planar networks)

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Mehlhorn and Schmidt – Experimental Results

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Shortest Paths in Planar Networks – Approach 2 (Frederickson) Perform a preprocessing on the graph to separate it into regions Using the planar separator algorithm recursively divide the graph into regions of vertices and boundary vertices each (r-division) Transform the graph so that no boundary vertex belongs to more than 3 regions (suitable r-division)

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Shortest Paths in Planar Networks – Approach 2 (Frederickson) A first algorithm (assume a suitable r- division is computed): –Compute shortest paths between boundary vertices (using Dijkstra’s algorithm within each region) –Compute shortest paths from source to each boundary vertex (using Topology-based Heap) –Compute shortest paths in every region separately (mop-up) –Running time:

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Frederickson’s Algorithm – Topology-based Heap When a boundary vertex is closed the updates involve vertices of the same region Partition the boundary vertices in boundary sets (sets of vertices that belong to the same regions) Organize the heap so that all vertices of each boundary set appear in consecutive leaves Result: faster updates

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Frederickson’s Algorithm – Experimental setup The same experimental setup as in the Mehlhorn and Schmidt algorithm Frederickson’s algorithm requires non- negative weights so it is compared with the algorithm of Dijkstra Time complexities: –Frederickson: –Dijkstra: O(nlogn) (for planar networks)

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Frederickson’s Algorithm – Experimental Results

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Frederickson’s Algorithm – Experimental Results Preprocessing needs to be done only once (suitable r-division, Dijkstra in every region, Topology-based heap set-up) For a shortest path query only the phases where we compute shortest paths to each boundary vertex and perform a mop-up in all regions are needed For an s-t shortest path query, mop-up is performed only in the region containing t

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Frederickson’s Algorithm – Experimental results

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Frederickson’s Algorithm – Experimental results

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Shortest Paths in Planar Networks - Conclusions Mehlhorn-Schmidt is not an option for shortest path computation in medium-sized networks Frederickson could be used for s-t shortest path queries after the preprocessing (although it has increased memory requirements) The idea of a Topology-based Heap should be explored further Algorithms from 1959 are still among the best!

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Tools For Planar Networks – Future Work Experiment with more shortest path algorithms that are based on the Planar Separator Theorem Design improved shortest path algorithms that use the idea of decomposition, for static or dynamic networks (the algorithm of Frederickson is a valid starting point)

Grigorios Prasinos and Christos Zaroliagis (CTI/University of Patras) 3 rd Amore Research Seminar – Oegstgeest, The Netherlands, October 2002 Tools for Planar Networks Thank you for your attention