All-Pairs Shortest Paths. Approximate All-Pairs shortest paths Approximate distance oracles Spanners and Emulators. Uri Zwick Tel Aviv University

Similar documents
Uri Zwick Tel Aviv University The 6th Max-Planck Advanced Course on the Foundations of Computer Science (ADFOCS)

The Greedy Method. Outline and Reading. Change Money Problem. Greedy Algorithms. Applications of the Greedy Strategy. The Greedy Method Technique

Kent State University CS 4/ Design and Analysis of Algorithms. Dept. of Math & Computer Science LECT-16. Dynamic Programming

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour

Problem Set 3 Solutions

F Geometric Mean Graphs

Dijkstra s Single Source Algorithm. All-Pairs Shortest Paths. Dynamic Programming Solution. Performance. Decision Sequence.

Module Management Tool in Software Development Organizations

Dijkstra s Single Source Algorithm. All-Pairs Shortest Paths. Dynamic Programming Solution. Performance

CHAPTER 2 DECOMPOSITION OF GRAPHS

Range images. Range image registration. Examples of sampling patterns. Range images and range surfaces

Programming in Fortran 90 : 2017/2018

A Topology-aware Random Walk

LECTURE : MANIFOLD LEARNING

GSLM Operations Research II Fall 13/14

Non-Split Restrained Dominating Set of an Interval Graph Using an Algorithm

Support Vector Machines

Ramsey numbers of cubes versus cliques

S1 Note. Basis functions.

11. APPROXIMATION ALGORITHMS

Metric Characteristics. Matrix Representations of Graphs.

U.C. Berkeley CS294: Beyond Worst-Case Analysis Handout 5 Luca Trevisan September 7, 2017

Tree Spanners for Bipartite Graphs and Probe Interval Graphs 1

Harmonic Coordinates for Character Articulation PIXAR

Report on On-line Graph Coloring

Reading. 14. Subdivision curves. Recommended:

Sorting: The Big Picture. The steps of QuickSort. QuickSort Example. QuickSort Example. QuickSort Example. Recursive Quicksort

Life Tables (Times) Summary. Sample StatFolio: lifetable times.sgp

the nber of vertces n the graph. spannng tree T beng part of a par of maxmally dstant trees s called extremal. Extremal trees are useful n the mxed an

CS1100 Introduction to Programming

CE 221 Data Structures and Algorithms

Constructing Minimum Connected Dominating Set: Algorithmic approach

Insertion Sort. Divide and Conquer Sorting. Divide and Conquer. Mergesort. Mergesort Example. Auxiliary Array

Design and Analysis of Algorithms

Parallelism for Nested Loops with Non-uniform and Flow Dependences

Classifier Selection Based on Data Complexity Measures *

A New Exact Algorithm for Traveling Salesman Problem with Time Complexity Interval (O(n^4), O(n^3 2^n))

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz

All Pairs Almost Shortest Paths

Subspace clustering. Clustering. Fundamental to all clustering techniques is the choice of distance measure between data points;

Sequential search. Building Java Programs Chapter 13. Sequential search. Sequential search

K-means and Hierarchical Clustering

1 Dynamic Connectivity

Course Introduction. Algorithm 8/31/2017. COSC 320 Advanced Data Structures and Algorithms. COSC 320 Advanced Data Structures and Algorithms

Smoothing Spline ANOVA for variable screening

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009.

Announcements. Supervised Learning

Today s Outline. Sorting: The Big Picture. Why Sort? Selection Sort: Idea. Insertion Sort: Idea. Sorting Chapter 7 in Weiss.

Theoretical Computer Science

Machine Learning: Algorithms and Applications

Some Advanced SPC Tools 1. Cumulative Sum Control (Cusum) Chart For the data shown in Table 9-1, the x chart can be generated.

Capacitated Domination and Covering: A Parameterized Perspective

Greedy Technique - Definition

LLVM passes and Intro to Loop Transformation Frameworks

Some Tutorial about the Project. Computer Graphics

Computation of a Minimum Average Distance Tree on Permutation Graphs*

Approximating Clique and Biclique Problems*

FEATURE EXTRACTION. Dr. K.Vijayarekha. Associate Dean School of Electrical and Electronics Engineering SASTRA University, Thanjavur

User Authentication Based On Behavioral Mouse Dynamics Biometrics

Loop Transformations, Dependences, and Parallelization

1 Introducton Effcent and speedy recovery of electrc power networks followng a major outage, caused by a dsaster such as extreme weather or equpment f

Planar Capacitated Dominating Set is W[1]-hard

1 Introducton Gven a graph G = (V; E), a non-negatve cost on each edge n E, and a set of vertces Z V, the mnmum Stener problem s to nd a mnmum cost su

Learning the Kernel Parameters in Kernel Minimum Distance Classifier

A fault tree analysis strategy using binary decision diagrams

Private Information Retrieval (PIR)

Distributed Degree Splitting, Edge Coloring, and Orientations

Hierarchical clustering for gene expression data analysis

Strong games played on random graphs

Collision Detection. Overview. Efficient Collision Detection. Collision Detection with Rays: Example. C = nm + (n choose 2)

LP Rounding for k-centers with Non-uniform Hard Capacities

All-Pairs Nearly 2-Approximate Shortest-Paths in O(n 2 polylog n) Time

COPS AND ROBBER WITH CONSTRAINTS

Feature Reduction and Selection

A Note on Competitive Diffusion Through Social Networks

HYPER GRAPH AND COPROCESSOR DESIGN FOR VLSI PARTITIONING PROBLEMS

LOOP ANALYSIS. The second systematic technique to determine all currents and voltages in a circuit

NAG Fortran Library Chapter Introduction. G10 Smoothing in Statistics

Approximations for Steiner Trees with Minimum Number of Steiner Points

CS 534: Computer Vision Model Fitting

Content Based Image Retrieval Using 2-D Discrete Wavelet with Texture Feature with Different Classifiers

An Optimal Algorithm for Prufer Codes *

Bridges and cut-vertices of Intuitionistic Fuzzy Graph Structure

Discrete Applied Mathematics. Shortest paths in linear time on minor-closed graph classes, with an application to Steiner tree approximation

NUMERICAL SOLVING OPTIMAL CONTROL PROBLEMS BY THE METHOD OF VARIATIONS

CSE 326: Data Structures Quicksort Comparison Sorting Bound

Design of Structure Optimization with APDL

Collaboratively Regularized Nearest Points for Set Based Recognition

O n processors in CRCW PRAM

AMath 483/583 Lecture 21 May 13, Notes: Notes: Jacobi iteration. Notes: Jacobi with OpenMP coarse grain

Approximate Distance Oracles

Circuit Analysis I (ENGR 2405) Chapter 3 Method of Analysis Nodal(KCL) and Mesh(KVL)

Quicksort. Part 1: Understanding Quicksort

Reducing Frame Rate for Object Tracking

SIGGRAPH Interactive Image Cutout. Interactive Graph Cut. Interactive Graph Cut. Interactive Graph Cut. Hard Constraints. Lazy Snapping.

Deterministic constructions of approximate distance oracles and spanners

Virtual Memory. Background. No. 10. Virtual Memory: concept. Logical Memory Space (review) Demand Paging(1) Virtual Memory

Routing in Degree-constrained FSO Mesh Networks

Annales UMCS Informatica AI 1 (2003) UMCS. Designing of multichannel optical communication systems topologies criteria optimization

Lobachevsky State University of Nizhni Novgorod. Polyhedron. Quick Start Guide

Transcription:

Approxmate All-Pars shortest paths Approxmate dstance oracles Spanners and Emulators Ur Zwck Tel Avv Unversty Summer School on Shortest Paths (PATH05 DIKU, Unversty of Copenhagen All-Pars Shortest Paths Input: A weghted drected graph G=(V,E, where E =m and V =n. Output: An nn dstance matrx. Approxmate Shortest Paths Let be the dstance from u to v. Multplcatve error Addtve error An estmated dstance (u,v s of stretch t ff t An estmated dstance (u,v s of surplus t ff t Surplus 0 (k- (k- All-Pars Almost Shortest Paths unweghted, undrected graphs Tme mn n 5/ n 3/ m / n 7/3 n -/k m /k n +/(3k-4 Authors folklore Angworth-Chekur- Indyk-Motwan 96 Dor-Halpern-Zwck 96 The surplus- algorthm The surplus- algorthm v v For each non-selected vertex v, run an SSSP algorthm on the subgraph Select each For composed vertex each vertex ndependently of the adjacent selected wth to edges, a probablty selected augmented vertex, p=(n/m by new / select an edge connectng t to a selected vertex. Run a SSSP edges algorthm connectng from v to each all the selected selected vertex. vertces. For The each length vertex of each non-adjacent new edge to s a the selected dstance vertex, between the endponts select all n ts the edges. orgnal graph. Select each vertex ndependently wth probablty p=(n/m / Run a SSSP algorthm from each selected vertex.

The surplus- algorthm v The surplus- algorthm v For each vertex adjacent to a selected vertex, select an edge connectng t to a selected vertex. For each vertex non-adjacent to a selected vertex, select all ts edges. For each non-selected vertex v, run an SSSP algorthm on the subgraph composed of the selected edges, augmented by new edges connectng v to all the selected vertces. The length of each new edge s the dstance between the endponts n the orgnal graph. The Surplus- algorthm Correctness Case Case : All vertces on a shortest path from u to v do not have selected neghbors. The Surplus- algorthm Correctness Case Case : At least one vertex on a shortest path from u to v has a selected neghbor. All the edges on the path are selected. We fnd a shortest path from u to v. Consder the last vertex wth a selected neghbor. We fnd a path from u to v of surplus at most The Surplus- algorthm - Analyss HIGH degree vertex low degree vertex Wth hgh probablty at least one neghbor s selected Takng all adjacent edges s relatvely cheap The expected number of the edges selected s O((mn / The expected runnng tme s therefore O(n(mn / =O(n 3/ m / Surplus 0 (k- (k- All-Pars Almost Shortest Paths unweghted, undrected graphs Tme mn n 5/ n 3/ m / n 7/3 n -/k m /k n +/(3k-4 Authors folklore Angworth-Chekur- Indyk-Motwan 96 Dor-Halpern-Zwck 96

All-Pars Almost Shortest Paths weghted undrected graphs Spanners Stretch 7/3 3 Tme mn n 3/ m / Reference Djkstra + FT Cohen-Zwck 97 n 7/3 n Some log factors gnores Gven an arbtrary dense graph, can we always fnd a relatvely sparse subgraph that approxmates all dstances farly well? Spanners!" # $! %& $$%'$! %&&& &%( " (!$ *'+'$!%&$,- ++.* " #//0 3 %$ $!$ %$ 3 $ 44(43 " 5 67 8 9 67 8 $,'$ '%&&$$$44(%!3 4" #$$3!$ ++.* $%& * $ %: (;$ %$" Exstence Proof / Constructon Algorthm [Althöfer, Das, Dobkn, Joseph, Soares 93] Consder the edges of the graph n non-decreasng order of weght. Add each edge to the spanner f t does not close a cycle of sze at most k. The resultng graph s a (k--spanner. The resultng graph does not contan a cycle of sze at most k. Hence the number of edges n t s at most n +/k. Approxmate Dstance Oracles (TZ 0 <&= ( 4=* 3 %" >! Stretch-Space tradeoff s essentally optmal!!"# $

Approxmate Dstance Oracles [TZ 0] A herarchy of centers Bunches %!*" *!*" % &' '! $ ($ "' B( v { w A A ( w, v ( A, v} Lemma: E[ B(v ] kn /k Proof: B(vA s stochastcally domnated by a geometrc random varable wth parameter p=n -/k + The data structure Keep for every vertex vv: The centers p (v, p (v,, p k- (v A hash table holdng B(v For every wv, we can check, n constant tme, whether wb(v, and f so, what s (v,w. Query answerng algorthm $ * 6 45?+! @ Query answerng algorthm, - -!*" -,!",!*" *

Analyss Where are the spanners?!(," ( *!*(, " (!(,"!,(*"! "!$",!", $ $!*" $! " *! $" Defne clusters, the dual of bunches. For every, put n the spanner a tree of shortest paths from to all the vertces n the cluster of., %. w B( v v C( w C( w { v V ( w, v ( A, v}, f w A A C( w { v V ( w, v ( A, v}, w A A B( v { w A A ( w, v ( A, v } Addtve Spanners!" # $! %& $$% '$!&&& &%( " (!$ '$!%&$,-. " #A<B C /D 9C (!$ C'$!%&$,- 7. " 5EB 67 B :%%!!%43 /%44!$ $!$ %4(- + $&%( F6G Spanners wth sublnear surplus %(*F+(! % $$$! - ++.* $$ &%(& - +'+.*'+ " - +'+.*'+ Extends and smplfes a result of Elkn and Peleg (00

All sorts of spanners #$! %& $$%& %4 &'$!&&& & &%( " $, ++.*. 7. + ++.* & *'+ C + - +' +.*'+ & #//0 #A<BC /D 9C 5EB67 6+ 896H The constructon of the approxmate dstance oracles, when appled to unweghted graphs, produces spanners wth sublnear surplus! We present a slghtly modfed constructon wth a slghtly smpler analyss. p (v Balls v % The orgnal constructon Select a herarchy of centers # 6 # + I# *'+. For every, add to the spanner a shortest paths tree of A4$" p (v Ball( u { vv ( u, v ( u, A }, u A A Ball[ u] Ball( u { p ( u}, u A A The modfed constructon Select a herarchy of centers # 6 # + I# *'+. For every, add to the spanner a shortest paths tree of 544" Spanners wth sublnear surplus Select a herarchy of centers # 6 # + I# *'+. For every, add to the spanner a shortest paths tree of 544" Let The path-fndng strategy Suppose we are at # and want to go to *. be an nteger parameter. If the frst J ' '+ edges of a shortest path from to are n the spanner, then use them. Otherwse, head for the +-center + nearest to. The dstance to s at most. (As /.!". / / *

The path-fndng strategy We ether reach, or at least make J ' '+ steps n the rght drecton. Or, make at most J ' '+ steps, possbly n a wrong drecton, but reach a center of level +. If *'+, we wll be able to reach " $ 0 $ $ The path-fndng strategy 0 $0 $ After at most K steps: ether we reach or dstance to decreased by K -K '+ / * % % * The path-fndng strategy ether we reach or dstance to decreased by K -K '+ After at most K steps: Surplus K '+ Stretch The surplus s ncurred only once! '( u, v ( ( u, v k Sublnear surplus '( u, v ( ( u, v k /( ( u, v d, d k k '( u, v d O( d