The Space-Stretch-Time Tradeoff in Distance Oracles

  • Rachit Agarwal
Part of the Lecture Notes in Computer Science book series (LNCS, volume 8737)


We present new distance oracles for computing distances of stretch less than 2 on general weighted undirected graphs. For the realistic case of sparse graphs and for any integer k, the new oracles return paths of stretch 1 + 1/k and exhibit a smooth three-way tradeoff of S ×T 1/k  = O(n 2) between space S, stretch and query time T. This significantly improves the state-of-the-art for each point in the space-stretch-time tradeoff space, and matches the known space-time curve for stretch 2 and larger. We also present new oracles for stretch 1 + 1/(k + 0.5). A particularly interesting case is of stretch 5/3, where improving the query time of our oracles from T to T 1 − ε for any ε > 0 would lead to the first purely o(mn)-time combinatorial algorithm for Boolean Matrix Multiplication, a longstanding open problem.


Short Path Hash Table Query Time Sparse Graph Query Algorithm 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Abraham, I., Gavoille, C.: On approximate distance labels and routing schemes with affine stretch. In: Peleg, D. (ed.) Distributed Computing. LNCS, vol. 6950, pp. 404–415. Springer, Heidelberg (2011)CrossRefGoogle Scholar
  2. 2.
    Agarwal, R., Caesar, M., Godfrey, P.B., Zhao, B.Y.: Shortest paths in less than a millisecond. In: SIGCOMM WOSN (2012)Google Scholar
  3. 3.
    Agarwal, R., Godfrey, P.B.: Brief announcement: A simple stretch 2 distance oracle. In: PODC (2013)Google Scholar
  4. 4.
    Agarwal, R., Godfrey, P.B.: Distance oracles for stretch less than 2. In: SODA (2013)Google Scholar
  5. 5.
    Agarwal, R., Godfrey, P.B., Har-Peled, S.: Approximate distance queries and compact routing in sparse graphs. In: INFOCOM (2011)Google Scholar
  6. 6.
    Agarwal, R., Godfrey, P.B., Har-Peled, S.: Faster approximate distance queries and compact routing in sparse graphs (2012)Google Scholar
  7. 7.
    Alon, N., Spencer, J.H.: The probabilistic method, vol. 57. Wiley Interscience (1992)Google Scholar
  8. 8.
    Awerbuch, B., Berger, B., Cowen, L., Peleg, D.: Near-linear time construction of sparse neighborhood covers. SIAM Journal on Computing 28(1), 263–277 (1998)CrossRefzbMATHMathSciNetGoogle Scholar
  9. 9.
    Bansal, N., Williams, R.: Regularity lemmas and combinatorial algorithms. In: FOCS (2009)Google Scholar
  10. 10.
    Baswana, S., Kavitha, T.: Faster algorithms for approximate distance oracles and all-pair small stretch paths. In: FOCS (2006)Google Scholar
  11. 11.
    Baswana, S., Sen, S.: Approximate distance oracles for unweighted graphs in expected O(n 2) time. ACM Transactions on Algorithms 2(4), 557–577 (2006)CrossRefMathSciNetGoogle Scholar
  12. 12.
    Blelloch, G.E., Vassilevska, V., Williams, R.: A new combinatorial approach for sparse graph problems. In: Aceto, L., Damgård, I., Goldberg, L.A., Halldórsson, M.M., Ingólfsdóttir, A., Walukiewicz, I. (eds.) ICALP 2008, Part I. LNCS, vol. 5125, pp. 108–120. Springer, Heidelberg (2008)CrossRefGoogle Scholar
  13. 13.
    Chechik, S.: Approximate distance oracles with constant query time. In: STOC (2014)Google Scholar
  14. 14.
    Chen, W., Sommer, C., Teng, S.-H., Wang, Y.: A compact routing scheme and approximate distance oracle for power-law graphs. ACM Transactions on Algorithms 9(1), 4:1–4:26 (2012)Google Scholar
  15. 15.
    Cohen, E.: Fast algorithms for constructing t-spanners and paths with stretch t. SIAM Journal on Computing 28(1), 210–236 (1998)CrossRefzbMATHGoogle Scholar
  16. 16.
    Dor, D., Halperin, S., Zwick, U.: All pairs almost shortest paths. In: FOCS (1996)Google Scholar
  17. 17.
    Enachescu, M., Wang, M., Goel, A.: Reducing maximum stretch in compact routing. In: INFOCOM (2008)Google Scholar
  18. 18.
    Gubichev, A., Bedathur, S., Seufert, S., Weikum, G.: Fast and accurate estimation of shortest paths in large graphs. In: CIKM (2010)Google Scholar
  19. 19.
    Kawarabayashi, K.-I., Klein, P.N., Sommer, C.: Linear-space approximate distance oracles for planar, bounded-genus and minor-free graphs. In: Aceto, L., Henzinger, M., Sgall, J. (eds.) ICALP 2011, Part I. LNCS, vol. 6755, pp. 135–146. Springer, Heidelberg (2011)CrossRefGoogle Scholar
  20. 20.
    Kawarabayashi, K.-I., Sommer, C., Thorup, M.: More compact oracles for approximate distances in undirected planar graphs. In: SODA (2013)Google Scholar
  21. 21.
    Matoušek, J.: On the distortion required for embedding finite metric spaces into normed spaces. Israel Journal of Mathematics 93(1), 333–344 (1996)CrossRefzbMATHMathSciNetGoogle Scholar
  22. 22.
    Mendel, M., Naor, A.: Ramsey partitions and proximity data structures. Journal of European Mathematical Society 2(9), 253–275 (2007)CrossRefMathSciNetGoogle Scholar
  23. 23.
    Pǎtraşcu, M., Roditty, L.: Distance oracles beyond the Thorup-Zwick bound. In: FOCS (2010)Google Scholar
  24. 24.
    Pǎtraşcu, M., Roditty, L., Thorup, M.: A new infinity of distance oracles for sparse graphs. In: FOCS (2012)Google Scholar
  25. 25.
    Porat, E., Roditty, L.: Preprocess, set, query!. In: Demetrescu, C., Halldórsson, M.M. (eds.) ESA 2011. LNCS, vol. 6942, pp. 603–614. Springer, Heidelberg (2011)CrossRefGoogle Scholar
  26. 26.
    Potamias, M., Bonchi, F., Castillo, C., Gionis, A.: Fast shortest path distance estimation in large networks. In: CIKM (2009)Google Scholar
  27. 27.
    Roditty, L., Zwick, U.: Replacement paths and k simple shortest paths in unweighted directed graphs. In: Caires, L., Italiano, G.F., Monteiro, L., Palamidessi, C., Yung, M. (eds.) ICALP 2005. LNCS, vol. 3580, pp. 249–260. Springer, Heidelberg (2005)CrossRefGoogle Scholar
  28. 28.
    Sommer, C., Verbin, E., Yu, W.: Distance oracles for sparse graphs. In: FOCS (2009)Google Scholar
  29. 29.
    Thorup, M., Zwick, U.: Compact routing schemes. In: SPAA (2001)Google Scholar
  30. 30.
    Thorup, M.: Compact oracles for reachability and approximate distances in planar digraphs. Journal of the ACM 51(6), 993–1024 (2004)CrossRefzbMATHMathSciNetGoogle Scholar
  31. 31.
    Thorup, M., Zwick, U.: Approximate distance oracles. Journal of the ACM 52(1), 1–24 (2005)CrossRefzbMATHMathSciNetGoogle Scholar
  32. 32.
    Wulff-Nilsen, C.: Approximate distance oracles with improved query time. In: SODA (2013)Google Scholar
  33. 33.
    Wulff-Nilsen, C.: Approximate distance oracles with improved preprocessing time. In: SODA (2012)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2014

Authors and Affiliations

  • Rachit Agarwal
    • 1
  1. 1.University of California at BerkeleyUSA

Personalised recommendations