Deterministic Constructions of Approximate Distance Oracles and Spanners

Thorup and Zwick showed that for any integer k≥ 1, it is possible to preprocess any positively weighted undirected graph G=(V,E), with |E|=m and |V|=n, in O(kmn$^{\rm 1/{\it k}}$) expected time and construct a data structure (a (2k–1)-approximate distance oracle) of size O(kn$^{\rm 1+1/{\it k}}$) capable of returning in O(k) time an approximation $\hat{\delta}(u,v)$ of the distance δ(u,v) from u to v in G that satisfies $\delta(u,v) \leq \hat{\delta}(u,v) \leq (2k -1)\cdot \delta(u,v)$, for any two vertices u,v∈ V. They also presented a much slower O(kmn) time deterministic algorithm for constructing approximate distance oracle with the slightly larger size of O(kn$^{\rm 1+1/{\it k}}$log n). We present here a deterministic O(kmn$^{\rm 1/{\it k}}$) time algorithm for constructing oracles of size O(kn$^{\rm 1+1/{\it k}}$). Our deterministic algorithm is slower than the randomized one by only a logarithmic factor. Using our derandomization technique we also obtain the first deterministic linear time algorithm for constructing optimal spanners of weighted graphs. We do that by derandomizing the O(km) expected time algorithm of Baswana and Sen (ICALP’03) for constructing (2k–1)-spanners of size O(kn$^{\rm 1+1/{\it k}}$) of weighted undirected graphs without incurring any asymptotic loss in the running time or in the size of the spanners produced.

[1]  Edith Cohen,et al.  All-pairs small-stretch paths , 1997, SODA '97.

[2]  Sandeep Sen,et al.  Approximate distance oracles for unweighted graphs in Õ (n2) time , 2004, SODA '04.

[3]  Mikkel Thorup,et al.  Undirected single-source shortest paths with positive integer weights in linear time , 1999, JACM.

[4]  Lenore Cowen,et al.  Near-Linear Time Construction of Sparse Neighborhood Covers , 1999, SIAM J. Comput..

[5]  Clifford Stein,et al.  Introduction to Algorithms, 2nd edition. , 2001 .

[6]  Sandeep Sen,et al.  A Simple Linear Time Algorithm for Computing Sparse Spanners in Weighted Graphs , 2003 .

[7]  Robert E. Tarjan,et al.  Fibonacci heaps and their uses in improved network optimization algorithms , 1987, JACM.

[8]  Ronald L. Rivest,et al.  Introduction to Algorithms , 1990 .

[9]  Michael Elkin,et al.  Computing almost shortest paths , 2001, TALG.

[10]  Noga Alon,et al.  The Probabilistic Method , 2015, Fundamentals of Ramsey Theory.

[11]  Edith Cohen Fast Algorithms for Constructing t-Spanners and Paths with Stretch t , 1998, SIAM J. Comput..

[12]  Noga Alon,et al.  The Probabilistic Method, Second Edition , 2004 .

[13]  David Peleg,et al.  (1+epsilon, beta)-Spanner Constructions for General Graphs , 2004, SIAM J. Comput..

[14]  Uri Zwick,et al.  All-Pairs Almost Shortest Paths , 1997, SIAM J. Comput..

[15]  Mikkel Thorup,et al.  Approximate distance oracles , 2005, J. ACM.

[16]  János Komlós,et al.  Storing a sparse table with O(1) worst case access time , 1982, 23rd Annual Symposium on Foundations of Computer Science (sfcs 1982).

[17]  Piotr Indyk,et al.  Fast estimation of diameter and shortest paths (without matrix multiplication) , 1996, SODA '96.

[18]  Noga Alon,et al.  Derandomization, witnesses for Boolean matrix multiplication and construction of perfect hash functions , 1994, Algorithmica.

[19]  Sandeep Sen,et al.  A Simple Linear Time Algorithm for Computing a (2k-1)-Spanner of O(n1+1/k) Size in Weighted Graphs , 2003, ICALP.