1 On Dynamic Shortest Paths Problems Liam Roditty Uri Zwick Tel Aviv University ESA 2004.

Slides:



Advertisements
Similar presentations
Lower Bounds for Additive Spanners, Emulators, and More David P. Woodruff MIT and Tsinghua University To appear in FOCS, 2006.
Advertisements

Lecture 15. Graph Algorithms
Algorithms (and Datastructures) Lecture 3 MAS 714 part 2 Hartmut Klauck.
all-pairs shortest paths in undirected graphs
Approximate Distance Oracles and Spanners with sublinear surplus Mikkel Thorup AT&T Research Uri Zwick Tel Aviv University.
Competitive fault tolerant Distance Oracles and Routing Schemes Weizmann Open U Weizmann Bar Ilan Shiri Chechik Michael Langberg David Peleg Liam Roditty.
Dynamic Graph Algorithms - I
David Wilson – Microsoft Research Uri Zwick – Tel Aviv Univ. A Forward-Backward Single-Source Shortest Paths Algorithm TexPoint fonts used in EMF. Read.
Minimum Spanning Trees Definition Two properties of MST’s Prim and Kruskal’s Algorithm –Proofs of correctness Boruvka’s algorithm Verifying an MST Randomized.
1 Cell Probe Complexity - An Invitation Peter Bro Miltersen University of Aarhus.
Graphs Chapter 12. Chapter Objectives  To become familiar with graph terminology and the different types of graphs  To study a Graph ADT and different.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
Two reductions to decremental BFS Camil Demetrescu University of Rome “La Sapienza”
Noga Alon Institute for Advanced Study and Tel Aviv University
1 Directed Graphs: Victoria Road Problem. 2 Update: Edge is deleted; Edge is inserted Edge weight is changed F A Directed graph problems.
ITEC200 – Week 12 Graphs. 2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
3 -1 Chapter 3 The Greedy Method 3 -2 The greedy method Suppose that a problem can be solved by a sequence of decisions. The greedy method has that each.
Dynamic Shortest Paths Camil Demetrescu University of Rome “La Sapienza” Giuseppe F. Italiano University of Rome “Tor Vergata”
1 Finding cycles using rectangular matrix multiplication and dynamic programming Raphael Yuster Haifa Univ. - Oranim Uri Zwick Tel Aviv University Uri.
An almost linear fully dynamic reachability algorithm.
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
Improved dynamic reachability algorithms for directed graphs Liam Roditty and Uri Zwick Tel Aviv University.
1 Approximate Distance Oracles Mikkel Thorup AT&T Research Uri Zwick Tel Aviv University.
Chapter 9 Graph algorithms Lec 21 Dec 1, Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
Liam Roditty Reachability in Directed Graphs. Connectivity in undirected graphs Given two vertices decide whether they are in the same component. Reachability.
Fall 2007CS 2251 Graphs Chapter 12. Fall 2007CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs To.
Greedy Algorithms Like dynamic programming algorithms, greedy algorithms are usually designed to solve optimization problems Unlike dynamic programming.
1 Exact and Approximate Distances in Graphs – A Survey Uri Zwick Tel Aviv University.
Introduction Outline The Problem Domain Network Design Spanning Trees Steiner Trees Triangulation Technique Spanners Spanners Application Simple Greedy.
1 An almost linear fully dynamic reachability algorithm Liam Roditty and Uri Zwick Tel Aviv University.
Graphs & Graph Algorithms 2 Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Rubao Ji Advisor: Dr. Robert W. Robinson Committee: Dr. E. Rodney Canfield Dr. Daniel M. Everett   Dynamic connectivity algorithms for Feynman.
Improved Randomized Algorithms for Path Problems in Graphs PhD Thesis Surender Baswana Department of Computer Science & Engineering, I.I.T. Delhi Research.
9/10/10 A. Smith; based on slides by E. Demaine, C. Leiserson, S. Raskhodnikova, K. Wayne Adam Smith Algorithm Design and Analysis L ECTURE 8 Greedy Graph.
© The McGraw-Hill Companies, Inc., Chapter 3 The Greedy Method.
Near Optimal Streaming algorithms for Graph Spanners Surender Baswana IIT Kanpur.
§3 Dynamic Programming 3. Optimal Binary Search Tree —— The best for static searching (without insertion and deletion) Given N words w 1 < w 2 < ……
Approximate Distance Oracles Mikkel Thorup and Uri Zwick Presented By Shiri Chechik.
An optimal dynamic spanner for points residing in doubling metric spaces Lee-Ad Gottlieb NYU Weizmann Liam Roditty Weizmann.
Analysis of Algorithms Uri Zwick March 2014 Dynamic All-Pairs Shortest-Paths 1 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Shortest Paths in Decremental, Distributed and Streaming Settings 1 Danupon Nanongkai KTH Royal Institute of Technology BIRS, Banff, March 2015.
A randomized linear time algorithm for graph spanners Surender Baswana Postdoctoral Researcher Max Planck Institute for Computer Science Saarbruecken,
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
Minimum Spanning Tree Chapter 13.6.
Improved Randomized Algorithms for Path Problems in Graphs
Yuval Peres Dmitry Sotnikov Benny Sudakov Uri Zwick (武熠)
Enumerating Distances Using Spanners of Bounded Degree
Graphs & Graph Algorithms 2
Greedy Algorithms / Dijkstra’s Algorithm Yin Tat Lee
Randomized Algorithms CS648
Approximate Distance Oracles and Spanners with sublinear surplus
Improved dynamic reachability algorithms for directed graphs
Shortest Path Algorithms
Raphael Yuster Haifa University Uri Zwick Tel Aviv University
Approximate Distance Oracles
Chapter 15 Graphs © 2006 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.
Reachability in Directed Graphs
Lecture 14 Shortest Path (cont’d) Minimum Spanning Tree
Exact and Approximate Distances in Graphs – A Survey
Dynamic Graph Algorithms
Graphs G = (V, E) V are the vertices; E are the edges.
Introduction to Algorithms: Greedy Algorithms (and Graphs)
Answering distance queries in directed graphs using fast matrix multiplication Raphael Yuster Haifa University Uri Zwick Tel Aviv University.
Lecture 13 Shortest Path (cont’d) Minimum Spanning Tree
Richard Anderson Winter 2019 Lecture 5
Presentation transcript:

1 On Dynamic Shortest Paths Problems Liam Roditty Uri Zwick Tel Aviv University ESA 2004

2 A graph Dynamic Graph Problems Initialize Insert Delete Query n - number of vertices m - number of edges

3 Dynamic Graph Problems: Great Successes Problem Amortized update/query time Authors Incremental undirected connectivity  (n) Tarjan ’74 Union-Find Decremental undirected connectivity log nThorup ’99 Fully-dynamic undirected connectivity (log n) O(1) Henzinger-King ’99 HdLT ’01

4 Dynamic Graph Problems: Only Modest Success Problem Amortized * update time Authors Incremental SSSPO(n)Even-Shiloach ’81 Decremental SSSPO(n)Even-Shiloach ’81 Fully-dynamic APSPO(n 2 ) Demetrescu-Italiano ’04 Thorup ’04 Is there any hope of getting logarithmic update times here?

5 Our results Incremental/Decremental SSSP is at least as hard is static APSP A new fully dynamic APSP algorithm for unweighted directed graph with update time = mn 1/2 query time = n 3/4 An improved algorithm for constructing “greedy” spanners

6 A very simple reduction Weighted undirected APSP Off-line decremental weighted undirected SSSP 2n nW 2nW n2Wn2W W – largest edge weight n deletions n 2 queries

7 Another simple reduction Boolean matrix multiplication Off-line decremental unweighted undirected SSSP A B Is there a path of length 2? n deletions n 2 queries

8 Fully dynamic APSP algorithms for directed graphs Amortized update time Query time AuthorsWeights? n2n2 1 Demetrescu-Italiano ’04 Thorup ’04 Yes mn 1/2 n 3/4 hereNo

9 Generalized insert/delete operations Delete an arbitrary set of edges Insert a set of edges touching an insertion center

10 Three ingredients Henzinger-King ’95 A decremental APSP algorithm with a total update time of O * (mn 2 /t) and a query time of O(t), for t<n/log n. Ullman-Yannakakis ’91 Let P be a path of length k. Let S be a random subset of vertices of size (cn ln n)/k. Then with high probability P  S  . Even-Shiloach ’81 A decremental algorithm for maintaining a single- source shortest path tree of depth k with a total running time of O(km).

11 The new fully dynamic algorithm Decremental APSP algorithm Full depth shortest paths trees for sampled vertices (cn log n)/k k Depth k decremental shortest paths trees for insertion centers t

12 Decremental APSP algorithm Aim for a query time of t=n 3/4 The algorithm works in phases. A new phase starts after every t insertions. Choose a sample of (cn log n)/k edges. (where k=n 1/2 )

13 Decremental APSP algorithm At the beginning of each phase: 1.Initialize the decremental APSP algorithm. 2.Rebuild all full depth trees. 3.Empty the set of insertion centers.

14 Decremental APSP algorithm Insertion: 1.Rebuild all full depth trees. 2.Build depth k decremental trees for the new insertion center.

15 Decremental APSP algorithm Deletion: 1.Rebuild all full depth trees. 2.Update all depth k decremental trees.

16 Decremental APSP algorithm Query: 1.Query the decremental algorithm. 2.Query each pair of full depth trees. 3.Query each pair of depth k trees.

17 Decremental APSP algorithm Amortized update cost: When k=n 1/2, t=n 3/4 these are all mn 1/2 !!!

18 Decremental APSP algorithm Query time:

19 Decremental APSP algorithm Correctness Paths that do not use any edges added during the current phase. Long paths (length>k) that use new edges Short paths (length≤k) that use new edges With high probability they pass through a sampled vertex

20 Open problems Dynamic approximate SSSP? Other update/query tradeoffs for dynamic APSP? A real lower bound for dynamic SSSP and/or APSP?