Two reductions to decremental BFS Camil Demetrescu University of Rome “La Sapienza”

Slides:



Advertisements
Similar presentations
Dynamic Connectivity: Connecting to Networks and Geometry Timothy ChanMihai P ă trașcu Liam Roditty Weizmann.
Advertisements

Algorithms (and Datastructures) Lecture 3 MAS 714 part 2 Hartmut Klauck.
all-pairs shortest paths in undirected graphs
Minimum Weight Cycle Liam Roditty Bar-Ilan University Based on: Approximating the girth, (SODA`11) with Roei Tov (BIU) Minimum Weight Cycles and Triangles:
1 Efficient algorithms on sets of permutations, dominance, and real-weighted APSP Raphael Yuster University of Haifa.
Dynamic Graph Algorithms - I
CS 206 Introduction to Computer Science II 03 / 27 / 2009 Instructor: Michael Eckmann.
Fully Dynamic Transitive Closure: Breaking Through the O(n 2 ) Barrier Camil Demetrescu University of Rome “La Sapienza” Giuseppe F. Italiano University.
CS 206 Introduction to Computer Science II 11 / 07 / 2008 Instructor: Michael Eckmann.
Dynamic All Pairs Shortest Paths Based on the following resources: Camil Demetrescu and Giuseppe F. Italiano (2004) A New Approach to Dynamic All Pairs.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
1 Directed Graphs: Victoria Road Problem. 2 Update: Edge is deleted; Edge is inserted Edge weight is changed F A Directed graph problems.
All-Pairs shortest paths via fast matrix multiplication Uri Zwick Tel Aviv University Otwarte wykłady dla doktorantów informatyki Instytut Informatyki.
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.
Introduction to Graphs
Maintaining Shortest Paths in Digraphs with Arbitrary Arc Weights University of Rome “La Sapienza” C. Demetrescu D. Frigioni A. Marchetti-Spaccamela U.
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.
Graphs & Graph Algorithms 2
1 Advanced Algorithms All-pairs SPs DP algorithm Floyd-Warshall alg.
Answering Distance Queries in directed graphs using fast matrix multiplication Seminar in Algorithms Prof. Haim Kaplan Lecture by Lior Eldar 1/07/2007.
CSE 321 Discrete Structures Winter 2008 Lecture 25 Graph Theory.
Liam Roditty Reachability in Directed Graphs. Connectivity in undirected graphs Given two vertices decide whether they are in the same component. Reachability.
1 Exact and Approximate Distances in Graphs – A Survey Uri Zwick Tel Aviv University.
CS 206 Introduction to Computer Science II 03 / 30 / 2009 Instructor: Michael Eckmann.
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.
CS 473 All Pairs Shortest Paths1 CS473 – Algorithms I All Pairs Shortest Paths.
Theory of Computing Lecture 7 MAS 714 Hartmut Klauck.
GRAPH Learning Outcomes Students should be able to:
Dynamic Single-source Shortest Paths Camil Demetrescu University of Rome “La Sapienza”
Directed graphs Definition. A directed graph (or digraph) is a pair (V, E), where V is a finite non-empty set of vertices, and E is a set of ordered pairs.
All-Pairs Bottleneck Paths in Vertex Weighted graphs Asaf Shapira Microsoft Research Raphael Yuster University of Haifa Uri Zwick Tel-Aviv University.
Distance sensitivity oracles in weighted directed graphs Raphael Yuster University of Haifa Joint work with Oren Weimann Weizmann inst.
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Graphs.
Engineering shortest path algorithms (a round trip between theory and experiments) Camil Demetrescu University of Rome “La Sapienza” Giuseppe F. Italiano.
The all-pairs shortest path problem (APSP) input: a directed graph G = (V, E) with edge weights goal: find a minimum weight (shortest) path between every.
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.
CSC212 Data Structure - Section AB
Data Structures and Algorithms in Parallel Computing Lecture 3.
All-Pairs Shortest Paths
Discrete Structures CISC 2315 FALL 2010 Graphs & Trees.
Shortest Paths in Decremental, Distributed and Streaming Settings 1 Danupon Nanongkai KTH Royal Institute of Technology BIRS, Banff, March 2015.
Graph Theory. undirected graph node: a, b, c, d, e, f edge: (a, b), (a, c), (b, c), (b, e), (c, d), (c, f), (d, e), (d, f), (e, f) subgraph.
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
Finding a Heaviest Triangle is not Harder than Matrix Multiplication Artur Czumaj & Andrzej Lingas.
Connectivity. Graph Scanning Algorithm Input: A graph G and some vertex s. Output: The set R of vertices reachable from s and a set T ⊆ E(G) such that.
CSE 421 Algorithms Richard Anderson Autumn 2015 Lecture 5.
Nattee Niparnan. Graph  A pair G = (V,E)  V = set of vertices (node)  E = set of edges (pairs of vertices)  V = (1,2,3,4,5,6,7)  E = ((1,2),(2,3),(3,5),(1,4),(4,
Fully Dynamic Approximate Distance Oracles for Planar Graphs via Forbidden-Set Distance Labels Presented by: Shiri Chechik (Weizmann Institute) Joint with:
Dijkstra’s Algorithm SSSP, non-neg Edge weights = w(x,y)
Improved Randomized Algorithms for Path Problems in Graphs
Yuval Peres Dmitry Sotnikov Benny Sudakov Uri Zwick (武熠)
Lecture 7 All-Pairs Shortest Paths
Graphs & Graph Algorithms 2
Randomized Algorithms CS648
Improved dynamic reachability algorithms for directed graphs
ورود اطلاعات بصورت غيربرخط
Analysis of Algorithms
Approximate Distance Oracles
Exact and Approximate Distances in Graphs – A Survey
Presented by-Kapil Kumar Cse-iii rd year
Graphs G = (V, E) V are the vertices; E are the edges.
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Answering distance queries in directed graphs using fast matrix multiplication Raphael Yuster Haifa University Uri Zwick Tel Aviv University.
New Jersey, October 9-11, 2016 Field of theoretical computer science
Richard Anderson Winter 2019 Lecture 6
Analysis of Algorithms
Richard Anderson Autumn 2015 Lecture 6
Presentation transcript:

Two reductions to decremental BFS Camil Demetrescu University of Rome “La Sapienza”

Decremental BFS [Even-Shiloach’81] depth d Each non-tree edge can fall down at most 2d times overall… O(md) total time over any deletion sequence O(d) time per deletion (amortized over Ω(m) deletions) delete(S) : delete all edges in S from graph G query(v) : return distance from s to v in graph G (if it is at most d)

Can we do any better than O(mn)? Roditty and Zwick in ESA 2004 have shown two reductions: Boolean matrix multiplication (off-line) decremental undirected BFS Weighted (static) undirected APSP (off-line) decremental undirected SSSP

Matrix mult. decremental BFS A and B boolean matrices We wish to compute C=A·B C[x,y]=1 iff there is z such that A[x,z]=1 and B[z,y]=1 A Bipartite graph with an edge (x,y) for each A[x,y]=1 B Bipartite graph with an edge (x,y) for each B[x,y]=1 C[x,y]=1 iff path of length 2 between x on first layer and y on last layer x y

C Matrix mult. decremental BFS A B s First row: C[1,x]=1 iff dist(s,x)= Second row: C[2,x]=1 iff dist(s,x)= Third row: C[3,x]=1 iff dist(s,x)= …… n deletions and n 2 queries Decremental BFS in o(mn) total time would yield boolean matrix multiplication in o(mn) x

2n G Undirected APSP decremental SSSP nW 2nW W = largest edge weight n2Wn2W … Exercise 8: does this reduction work in directed graphs? n deletions and n 2 queries Decremental SSSP in o(mn) total time would yield undirected APSP in o(mn)

More details in Decremental BFS: [Even-Shiloach’81] S. Even and Y. Shiloach, An On-line Edge Deletion Problem, J. Assoc. Comput. Mach. (JACM), Vol. 28, pp. 1-4, 1981 Reductions to decremental BFS: [Roditty-Zwick’04] Liam Roditty, Uri Zwick, On dynamic shortest paths problems Proc. of 12th ESA (2004),