1 Approximate Distance Oracles Mikkel Thorup AT&T Research Uri Zwick Tel Aviv University.

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

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.
Compact and Low Delay Routing Labeling Scheme for Unit Disk Graphs Chenyu Yan, Yang Xiang, and Feodor F. Dragan (WADS 2009) Kent State University, Kent,
NP-Completeness: Reductions
Everything you always wanted to know about spanners * *But were afraid to ask Seth Pettie University of Michigan, Ann Arbor.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
Approximating Distances in Graphs Uri Zwick Tel Aviv University Otwarte wykłady dla doktorantów informatyki Instytut Informatyki Uniwersytetu Warszawskiego.
Noga Alon Institute for Advanced Study and Tel Aviv University
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
1 Sadna in Algorithms Haim Kaplan and Svetlana Olonetsky Tel Aviv University, fall 07/08.
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
1 On Dynamic Shortest Paths Problems Liam Roditty 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.
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
Chapter 9 Graph algorithms Lec 21 Dec 1, Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
Compact Routing Schemes Mikkel Thorup Uri Zwick AT&T Labs – Research Tel Aviv University.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
Collective Additive Tree Spanners of Homogeneously Orderable Graphs
Collective Tree Spanners of Graphs with Bounded Parameters F.F. Dragan and C. Yan Kent State University, USA.
Collective Tree Spanners and Routing in AT-free Related Graphs F.F. Dragan, C. Yan, D. Corneil Kent State University University of Toronto.
Additive Spanners for k-Chordal Graphs V. D. Chepoi, F.F. Dragan, C. Yan University Aix-Marseille II, France Kent State University, Ohio, USA.
1 Separator Theorems for Planar Graphs Presented by Shira Zucker.
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.
Approximate Distance Oracles for Geometric Spanner Networks Joachim Gudmundsson TUE, Netherlands Christos Levcopoulos Lund U., Sweden Giri Narasimhan Florida.
Introduction Outline The Problem Domain Network Design Spanning Trees Steiner Trees Triangulation Technique Spanners Spanners Application Simple Greedy.
Improved Randomized Algorithms for Path Problems in Graphs PhD Thesis Surender Baswana Department of Computer Science & Engineering, I.I.T. Delhi Research.
1 Finding Sparser Directed Spanners Piotr Berman, Sofya Raskhodnikova, Ge Ruan Pennsylvania State University.
Trees and Distance. 2.1 Basic properties Acyclic : a graph with no cycle Forest : acyclic graph Tree : connected acyclic graph Leaf : a vertex of degree.
GRAPH SPANNERS by S.Nithya. Spanner Definition- Informal A geometric spanner network for a set of points is a graph G in which each pair of vertices is.
Near Optimal Streaming algorithms for Graph Spanners Surender Baswana IIT Kanpur.
Distance sensitivity oracles in weighted directed graphs Raphael Yuster University of Haifa Joint work with Oren Weimann Weizmann inst.
1 Approximate Algorithms (chap. 35) Motivation: –Many problems are NP-complete, so unlikely find efficient algorithms –Three ways to get around: If input.
Approximate Distance Oracles Mikkel Thorup and Uri Zwick Presented By Shiri Chechik.
Lower Bound for Sparse Euclidean Spanners Presented by- Deepak Kumar Gupta(Y6154), Nandan Kumar Dubey(Y6279), Vishal Agrawal(Y6541)
Markov Chains and Random Walks. Def: A stochastic process X={X(t),t ∈ T} is a collection of random variables. If T is a countable set, say T={0,1,2, …
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
A randomized linear time algorithm for graph spanners Surender Baswana Postdoctoral Researcher Max Planck Institute for Computer Science Saarbruecken,
NPC.
Approximation Algorithms Greedy Strategies. I hear, I forget. I learn, I remember. I do, I understand! 2 Max and Min  min f is equivalent to max –f.
Trees.
Improved Randomized Algorithms for Path Problems in Graphs
Spanners and emulators with sublinear distance errors
Adjacency labeling schemes and induced-universal graphs
Autumn 2016 Lecture 11 Minimum Spanning Trees (Part II)
Connected Components Minimum Spanning Tree
Randomized Algorithms CS648
Autumn 2015 Lecture 11 Minimum Spanning Trees (Part II)
Near-Optimal (Euclidean) Metric Compression
Approximate Distance Oracles and Spanners with sublinear surplus
CS 583 Analysis of Algorithms
Discrete Math II Howon Kim
Analysis of Algorithms
Autumn 2015 Lecture 10 Minimum Spanning Trees
Approximating Distances in Graphs
Analysis of Algorithms
Raphael Yuster Haifa University Uri Zwick Tel Aviv University
Compact Routing Schemes
Approximate Distance Oracles
Richard Anderson Lecture 10 Minimum Spanning Trees
Exact and Approximate Distances in Graphs – A Survey
Compact routing schemes with improved stretch
Graphs G = (V, E) V are the vertices; E are the edges.
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
Analysis of Algorithms
Routing in Networks with Low Doubling Dimension
Forbidden-set labelling in graphs
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

1 Approximate Distance Oracles Mikkel Thorup AT&T Research Uri Zwick Tel Aviv University

2 Finite metric space n by n distance matrix O(1) query time Exact answers  (n 2 ) space Approximate distance oracle Compact data structure O(k) query time stretch 2k - 1 O(kn 1+1/k ) space O(n 2 ) time

3 Graph n by n distance matrix Compact data structure APSP algorithm kmn 1/k time kn 1+1/k space

4 Approximate Distance Oracles Reference Preproc. time Space Query time Stretch Awerbuch- Berger-Cowen- Peleg ‘93 kmn 1/k kn 1+1/k kn 1/k 64k Cohen ‘93kn 1/k 2k+  Thorup- Zwick ‘01 k 2k-1 Constant query time! This tradeoff is essentially optimal !

5 Approximate Distance Oracles Preproc. time Space Query time Stretch Ω(n 2 )2.99 mn 1/2 O(n 3/2 )13 Ω(n 3/2 )4.99 mn 1/3 O(n 4/3 )15 ………… m log nn log nlog n

6 Stretch/space tradeoff Let G=(V,E) be a graph with |V|=n and girth(G)≥2k+2. Any subgraph G’=(V,E’) of G must have a distinct data structure! If (u,v)  E’, then  G’ (u,v)=1. Otherwise  G’ (u,v) ≥2k+1. As there are 2 |E| different subgraphs of G, some subgraphs must have data structures of at least |E| bits. Conjecture: (Erdös ’65) For every k≥1, there are infinitely many n-vertex graphs with Ω(n 1+1/k ) edges that have girth≥2k+2.

7 Spanners Let G be a weighted undirected graph. A subgraph H of G is a t -spanner of G iff  u,v  G,  H (u,v)  t  G (u,v). Awerbuch ’85 Peleg-Schäffer ‘89

8 Trivial example

9 Theorem For every k≥1, every weighted undirected graph on n vertices has a (2k-1)-spanner with at most m 2k+1 (n) ≤ n 1+1/k edges. Maximal number of edges in an n-vertex graph with girth ≥ 2k+1 Tight for k=1,2,3,5. Conjectured to be tight for any k

10 Proof/Algorithm: Consider the edges in non-decreasing order of weight. Add each edge to the spanner if it does not close a cycle of size at most 2k. The resulting graph is a (2k-1)-spanner and it does not contain a cycle of size at most 2k. Hence the number of edges is at most m 2k+1 (n) ≤ n 1+1/k. [Althöfer, Das, Dobkin, Joseph, Soares ‘93]

11 If |cycle|  2k, then red edge can be removed.

12 A hierarchy of centers A 0  V ; A k  ; A i  sample(A i-1,n -1/k ) ;

13 Clusters A0=A1=A2=A0=A1=A2= w

14 Bunches (inverse clusters)

15 Bunches A0=A1=A2=A0=A1=A2= v p 1 (v) p 2 (v)

16 The data structure For every vertex v  V: The centers p 1 (v), p 2 (v),…, p k-1 (v) A hash table holding B(v) For every w  V, we can check, in constant time, whether w  B(v), and if so, what is  (v,w).

17 Lemma: E[|B(v)|]≤kn 1/k Proof: |B(v)  A i | is stochastically dominated by a geometric random variable with parameter p=n -1/k.

18 Query answering algorithm Algorithm dist k (u,v) w  u, i  0 while w  B(v) { i  i+1 (u,v)  (v,u) w  p i (u) } return  (w,u)+  (w,v)

19 Query answering algorithm u v w 1 =p 1 (v)  A 1 w 2 =p 2 (u)  A 2 w 3 =p 3 (v)  A 3

20 u v w i-1 =p i-1 (v)  A i-1 w i =p i (u)  A i Analysis  (i-1)  ii ii (i+1) 

21 Spanners / Tree covers w In each cluster, construct a tree of shortest paths The union of all these trees in a (2k-1)-spanner with kn 1+1/k edges. Constructed in O(kmn 1/k ) time!

22 Tree Cover Each vertex contained in at most n 1/k log n trees. For every u,v, there is a tree with a path of stretch at most 2k-1 between them.

23 Applications Routing Distance labels Sub-quadratic approximation algorithms for metric space problems

24 Open Problems 1.Deterministic construction of (2k-1,n 1+1/k,k)-distance oracles in o(mn) time? 2.Constructing a (3,n 3/2,1)-distance oracle in n 2+o(1) time? 3.Distance oracles with additive errors?