Approximate Distance Oracles

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
Lower Bound for Sparse Euclidean Spanners Presented by- Deepak Kumar Gupta(Y6154), Nandan Kumar Dubey(Y6279), Vishal Agrawal(Y6541)
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.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
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.
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
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
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.
What is the next line of the proof? a). Let G be a graph with k vertices. b). Assume the theorem holds for all graphs with k+1 vertices. c). Let G be a.
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.
1 Approximate Distance Oracles Mikkel Thorup AT&T Research Uri Zwick Tel Aviv University.
Compact Routing Schemes Mikkel Thorup Uri Zwick AT&T Labs – Research Tel Aviv University.
Collective Additive Tree Spanners of Homogeneously Orderable Graphs
1 Separator Theorems for Planar Graphs Presented by Shira Zucker.
Randomness in Computation and Communication Part 1: Randomized algorithms Lap Chi Lau CSE CUHK.
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.
1 Finding Sparser Directed Spanners Piotr Berman, Sofya Raskhodnikova, Ge Ruan Pennsylvania State University.
Lecture 13 Graphs. Introduction to Graphs Examples of Graphs – Airline Route Map What is the fastest way to get from Pittsburgh to St Louis? What is the.
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.
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.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. Fast.
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.
The Theory of NP-Completeness
Markov Chains and Random Walks
Forbidden-Set Distance Labels for Graphs of Bounded Doubling Dimension
Improved Randomized Algorithms for Path Problems in Graphs
Approximate Algorithms (chap. 35)
Spanners and emulators with sublinear distance errors
Autumn 2016 Lecture 11 Minimum Spanning Trees (Part II)
Connected Components Minimum Spanning Tree
GRAPH SPANNERS.
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
Discounted Deterministic Markov Decision Processes
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
Exact and Approximate Distances in Graphs – A Survey
Compact routing schemes with improved stretch
Distance-preserving Subgraphs of Interval Graphs
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:

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

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

Compact data structure APSP algorithm n by n distance matrix Graph kmn1/k time kn1+1/k space Compact data structure

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

Approximate Distance Oracles Preproc. time Space Query time Stretch Ω(n2) 2.99 mn1/2 O(n3/2) 1 3 Ω(n3/2) 4.99 mn1/3 O(n4/3) 5 … m log n n log n log n

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 Ω(n1+1/k) edges that have girth≥2k+2.

Spanners H(u,v)  t G(u,v) . 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

Trivial example

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

[Althöfer, Das, Dobkin, Joseph, Soares ‘93] 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 m2k+1(n) ≤ n1+1/k. [Althöfer, Das, Dobkin, Joseph, Soares ‘93]

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

A0V ; Ak  ; Ai sample(Ai-1,n-1/k) ; A hierarchy of centers A0V ; Ak  ; Ai sample(Ai-1,n-1/k) ;

A0= A1= A2= Clusters w

Bunches (inverse clusters)

Bunches A0= A1= A2= p2(v) v p1(v)

The data structure For every vertex vV: The centers p1(v), p2(v),…, pk-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).

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

Query answering algorithm Algorithm distk(u,v) wu , i0 while wB(v) { i i+1 (u,v) (v,u) w pi(u) } return (w,u)+ (w,v)

Query answering algorithm w3=p3(v)A3 w2=p2(u)A2 w1=p1(v)A1 u v

Analysis wi=pi(u)Ai wi-1=pi-1(v)Ai-1 i (i+1) i (i-1) u v 

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 kn1+1/k edges. w Constructed in O(kmn1/k) time!

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

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

Subsequent work Approximate distance oracles for planar networks (Thorup ’01) Roundtrip spanners for directed networks (Roditty-Thorup-Z ’02)

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