Improved dynamic reachability algorithms for directed graphs Liam Roditty and Uri Zwick Tel Aviv University.

Slides:



Advertisements
Similar presentations
Introduction to Algorithms Graph Algorithms
Advertisements

Dynamic Connectivity: Connecting to Networks and Geometry Timothy ChanMihai P ă trașcu Liam Roditty Weizmann.
Planning for Fast Connectivity Updates Mihai Pă traşcu Mikkel Thorup …until June 2008 Jobs, anyone?
Graphs - II Algorithms G. Miller V. Adamchik CS Spring 2014 Carnegie Mellon University.
Single Source Shortest Paths
all-pairs shortest paths in undirected graphs
Lecture 7 March 1, 11 discuss HW 2, Problem 3
Dynamic Graph Algorithms - I
Dynamic Planar Convex Hull Operations in Near- Logarithmic Amortized Time TIMOTHY M. CHAN.
1 Chapter 22: Elementary Graph Algorithms IV. 2 About this lecture Review of Strongly Connected Components (SCC) in a directed graph Finding all SCC (i.e.,
Fully Dynamic Transitive Closure: Breaking Through the O(n 2 ) Barrier Camil Demetrescu University of Rome “La Sapienza” Giuseppe F. Italiano University.
Graph Search Methods A vertex u is reachable from vertex v iff there is a path from v to u
Dynamic All Pairs Shortest Paths Based on the following resources: Camil Demetrescu and Giuseppe F. Italiano (2004) A New Approach to Dynamic All Pairs.
Two reductions to decremental BFS Camil Demetrescu University of Rome “La Sapienza”
Approximating Average Parameters of Graphs Oded Goldreich, Weizmann Institute Dana Ron, Tel Aviv University.
Perfect Matching for Biconnected Cubic Graphs in O(nlog 2 n) Time Krzysztof Diks & Piotr Stańczyk.
1 Directed Graphs: Victoria Road Problem. 2 Update: Edge is deleted; Edge is inserted Edge weight is changed F A Directed graph problems.
A Randomized Linear-Time Algorithm to Find Minimum Spanning Trees David R. Karger David R. Karger Philip N. Klein Philip N. Klein Robert E. Tarjan.
Max Flow: Shortest Augmenting Path
Dynamic Shortest Paths Camil Demetrescu University of Rome “La Sapienza” Giuseppe F. Italiano University of Rome “Tor Vergata”
1 On Dynamic Shortest Paths Problems Liam Roditty Uri Zwick Tel Aviv University ESA 2004.
Incremental topological ordering with Bernhard Haeupler, Sid Sen Two problems on digraphs: Cycle detection Topological ordering: a total order O such that.
1 Fast Sparse Matrix Multiplication Raphael Yuster Haifa University (Oranim) Uri Zwick Tel Aviv University ESA 2004.
1 Finding cycles using rectangular matrix multiplication and dynamic programming Raphael Yuster Haifa Univ. - Oranim Uri Zwick Tel Aviv University Uri.
© 2004 Goodrich, Tamassia Directed Graphs1 JFK BOS MIA ORD LAX DFW SFO.
An almost linear fully dynamic reachability algorithm.
Maintaining Shortest Paths in Digraphs with Arbitrary Arc Weights University of Rome “La Sapienza” C. Demetrescu D. Frigioni A. Marchetti-Spaccamela U.
CSE 421 Algorithms Richard Anderson Lecture 4. What does it mean for an algorithm to be efficient?
CS344: Lecture 16 S. Muthu Muthukrishnan. Graph Navigation BFS: DFS: DFS numbering by start time or finish time. –tree, back, forward and cross edges.
Directed Graphs1 JFK BOS MIA ORD LAX DFW SFO. Directed Graphs2 Outline and Reading (§6.4) Reachability (§6.4.1) Directed DFS Strong connectivity Transitive.
Liam Roditty Reachability in Directed Graphs. Connectivity in undirected graphs Given two vertices decide whether they are in the same component. Reachability.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 11 Instructor: Paul Beame.
More Graph Algorithms Weiss ch Exercise: MST idea from yesterday Alternative minimum spanning tree algorithm idea Idea: Look at smallest edge not.
1 An almost linear fully dynamic reachability algorithm Liam Roditty and Uri Zwick Tel Aviv University.
Tools for Planar Networks Grigorios Prasinos and Christos Zaroliagis CTI/University of Patras 3 rd Amore Research Seminar – Oegstgeest, The Netherlands,
Rubao Ji Advisor: Dr. Robert W. Robinson Committee: Dr. E. Rodney Canfield Dr. Daniel M. Everett   Dynamic connectivity algorithms for Feynman.
Dynamic Single-source Shortest Paths Camil Demetrescu University of Rome “La Sapienza”
Improved Randomized Algorithms for Path Problems in Graphs PhD Thesis Surender Baswana Department of Computer Science & Engineering, I.I.T. Delhi Research.
IS 2610: Data Structures Graph April 5, 2004.
COSC 3101NJ. Elder Assignment 2 Remarking Assignment 2 Marks y = 0.995x R 2 = Old Mark New Mark.
Week -7-8 Topic - Graph Algorithms CSE – 5311 Prepared by:- Sushruth Puttaswamy Lekhendro Lisham.
1 Quantum query complexity of some graph problems C. DürrUniv. Paris-Sud M. HeiligmanNational Security Agency P. HøyerUniv. of Calgary M. MhallaInstitut.
Chapter 2 Graph Algorithms.
Edge-disjoint induced subgraphs with given minimum degree Raphael Yuster 2012.
Chapter 24: Single-Source Shortest Paths Given: A single source vertex in a weighted, directed graph. Want to compute a shortest path for each possible.
Fast and practical indexing and querying of very large graphs Silke Triβl, Ulf Leser Humboldt-Universitat zu Berlin Presenter: Liwen Sun (Stephen) SIGMOD’07.
Partial Soluti on and Entropy Tadao Takaoka Department of Computer Science University of Canterbury Christchurch, New Zealand.
Lecture 11 Algorithm Analysis Arne Kutzner Hanyang University / Seoul Korea.
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.
Shortest Paths in Decremental, Distributed and Streaming Settings 1 Danupon Nanongkai KTH Royal Institute of Technology BIRS, Banff, March 2015.
Union By Rank Ackermann’s Function Graph Algorithms Rajee S Ramanikanthan Kavya Reddy Musani.
Analysis of Algorithms Spring semester 2002 Uri Zwick
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
Exponential random graphs and dynamic graph algorithms David Eppstein Comp. Sci. Dept., UC Irvine.
A randomized linear time algorithm for graph spanners Surender Baswana Postdoctoral Researcher Max Planck Institute for Computer Science Saarbruecken,
 2004 SDU 1 Lecture5-Strongly Connected Components.
Incremental convex hulls BEN LEVY| DISCRETE ALGORITHMIC GEOMETRY
Breadth-First Search (BFS)
Improved Randomized Algorithms for Path Problems in Graphs
Yuval Peres Dmitry Sotnikov Benny Sudakov Uri Zwick (武熠)
David Wilson – Microsoft Research Uri Zwick – Tel Aviv Univ.
Randomized Algorithms CS648
Discounted Deterministic Markov Decision Processes
Improved dynamic reachability algorithms for directed graphs
Raphael Yuster Haifa University Uri Zwick Tel Aviv University
Fast Sparse Matrix Multiplication
Reachability in Directed Graphs
Dynamic Graph Algorithms
CSE 417: Algorithms and Computational Complexity
EMIS 8374 Search Algorithms Updated 12 February 2008
Presentation transcript:

Improved dynamic reachability algorithms for directed graphs Liam Roditty and Uri Zwick Tel Aviv University

2 Dynamic reachability Transitive closure matrixThe dynamic graph Operations Delete (1,5) (4,1) Insert (5,1) (5,2) (5,4) Reach? (1,4) Delete (2,3) (6,7) (8,5)

Decremental reachability - Results GraphsAlgorithm Query time Total update time Authors DAGs Deterministic 1 mn Italiano ’88 General Monte Carlo n log n mn log 2 n Henzinger King ’95 General Deterministic 1 m2m2 La Poutré van Leeuwen ’87 FMNZ ’01 General Deterministic 1 n3n3 Demetrescu Italiano ’00 General Monte Carlo1 mn 4/3 Baswana Hariharan Sen ’02 GeneralLas Vegas 1 mn RZ ’02

4 Fully dynamic reachability - Results GraphsAlgorithm Query time Amortized update time Authors General Deterministic 1 n 2 log n King ’99 General Deterministic 1 n2n2 Demetrescu Italiano ’00 General Deterministic 1 n2n2 Roditty ’03

5 Fully dynamic reachability - Results GraphsAlgorithm Query time Amortized update time Authors DAGs Monte Carlo n 0.58 n 1.58 Demetrescu, Italiano ’00 DAGs Deterministic n log n m RZ ’02 General Monte Carlo n log n mn 1/2 log 2 n Henzinger King ’95 General Monte Carlo n log n m 0.58 n General Deterministic n 1/2 mn 1/2 RZ ’02 General Monte Carlo m 0.43 m 0.58 n

6 Decremental maintenance of a reachability tree in a DAG – Italiano’s algorithm Every edge is only examined once! Total complexity is O(m) per tree.

7 Decremental maintenance of a reachability tree in a general graph Frigioni, Miller, Nanni and Zaroliagis ’01 The graph induced on the Strongly Connected Components (SCCs) of a graph is a DAG. Maintain a reachability tree of SCCs ! If a deleted edge connects two different SCCs, use Italiano’s algorithm. If a deleted edge is in a SCC, and the SCC remains strongly connected, do nothing.

8 When a SCC decomposes

9 How do we maintain the SCCs? FMNZ’01 recompute the SCCs for each deleted edge. Thus, the worst-case complexity of their algorithm is O(m 2 ). We maintain the SCC components in O(mn) expected time. This reduces the total expected time to O(mn).

10 Decremental maintenance of a BFS tree in a general graph Even, Shiloach ’81 / Henzinger, King ’95 Every edge is only examined once per level! Total complexity is O(mn).

11 Detecting the decomposition of a SCC Choose a representative vertex w in the SCC. Construct and maintain a BFS tree out of w, and a BFS tree into w. The SCC decomposes only when one of these trees looses a vertex. w

12 When a SCC decomposes w w w4w4 w2w2 w1w1 w3w3 Total cost: mn + m 1 n 1 +m 2 n 2 +m 3 n 3 +m 4 n 4 + … = O(mn) ???

13 Choice of representatives w Choose a RANDOM representative !!! Expected running time is then O(mn) !!! w w

14 Decremental SCCs - Analysis Let be the expected total running time.

15 Decremental SCCs - Analysis

16 Fully dynamic reachability (after Henzinger-King ’95) G Decremental data structure … v1v1 v2v2 vtvt Initialize a decremental data structure O(mn) time Insert(E v ) – build/rebuild In(v) and Out(v). O(m) time. Reach?(u,v) – Query the decremental data structure and each pair of trees. O(t) time Delete(E’) – Update the decremental data structure and rebuild all trees. O(mt) time. When t=n 1/2, restart. Amortized cost per update – O(mn 1/2 ) Worst-case query time – O(n 1/2 )

17 Decremental reachability – Open problems Is there a decremental algorithm for maintaining the strongly connected components of a directed graph whose total running time is o(mn)? Is there a deterministic decremental algorithm for maintaining the transitive closure of a general directed graph whose total running time is O(mn)? Is there a decremental algorithm for maintaining a shortest-paths tree, or even just a reachability tree, from a single source in a general directed graph whose total running time is o(mn)?

18 Fully dynamic reachability – Open problems Is there a fully dynamic reachability algorithm with an amortized update time of o(n 2 ), and worst case query time of o(m) for general directed graphs? Interesting lower bounds?