Skip to main content

Approximate Distance Oracles with Improved Stretch for Sparse Graphs

  • Conference paper
  • First Online:
Computing and Combinatorics (COCOON 2021)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 13025))

Included in the following conference series:

Abstract

Thorup and Zwick [19] introduced the notion of approximate distance oracles, a data structure that produces for an n-vertices, m-edges weighted undirected graph \(G=(V,E)\), distance estimations in constant query time. They presented a distance oracle of size \(O(kn^{1+1/k})\) that given a pair of vertices \(u,v \in V\) at distance d(uv) produces in O(k) time an estimation that is bounded by \((2k-1)d(u,v)\), i.e., a \((2k-1)\)-multiplicative approximation (stretch). Thorup and Zwick [19] presented also a lower bound based on the girth conjecture of Erdős.

For sparse unweighted graphs (i.e., \(m=\tilde{O}(n)\)) the lower bound does not apply. Pǎtraşcu and Roditty [10] used the sparsity of the graph and obtained a distance oracle that uses \(\tilde{O}(n^{5/3})\) space, has O(1) query time and a stretch of 2. Pǎtraşcu et al. [11] presented infinity many distance oracles with fractional stretch factors that for graphs with \(m=\tilde{O}(n)\) converge exactly to the integral stretch factors and the corresponding space bound of Thorup and Zwick.

It is not known, however, whether graph sparsity can help to get a stretch which is better than \((2k-1)\) using only \(\tilde{O}(kn^{1+1/k})\) space. In this paper we answer this open question and prove a separation between sparse and dense graphs by showing that using sparsity it is possible to obtain better stretch/space tradeoffs than those of Thorup and Zwick. We show that for every \(k\ge 2\) there is a distance oracle of size \(O(knm^{1/k}\log n)\) that produces in O(k) time an estimation \(d^*(u,v)\) that satisfies \(d(u,v) \le d^*(u,v) \le (2k-1)d(u,v)-4\), for \(k>2\), and \(d(u,v) \le d^*(u,v) \le 3d(u,v)-2\), for \(k=2\).

Another contribution of this paper is a refined stretch analysis of Thorup and Zwick distance oracles that allows us to obtain a better understanding of this important data structure. We present simple conditions for every \(w\in V\) that characterizes the exact scenarios in which every query that involves w produces an estimation of stretch strictly better than \(2k-1\), even in the case of dense graphs. We complement this contribution with an experiment on real world graphs. The main finding in the experiment is that different real world graphs are likely to satisfy the required conditions and hence the stretch of Thorup and Zwick distance oracles is much better than its worst case bound in these real world graphs.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The girth is the length of the shortest cycle in an unweighted graph.

  2. 2.

    A trivial way to get a smaller space for sparse graphs is to simply save the graph and answer any query in O(m) time by doing BFS, this however, violates the additional requirement for distance oracles of a constant or almost a constant query time.

  3. 3.

    Throughout the paper we will use the \(\tilde{O}(\cdot )\) notation to hide small poly-logarithmic factors.

  4. 4.

    See for more examples https://snap.stanford.edu/index.html.

  5. 5.

    In the formal definition we take the ceiling of the average distance.

  6. 6.

    Using current techniques of cell probe lower bounds we cannot hope for more specific tradeoff since it is not possible to separate asymptotically the query times of data structures of size \(m^{1.99}\) and \(m^{1.01}\) for input size m.

References

  1. Abraham, I., Gavoille, C.: On approximate distance labels and routing schemes with affine stretch. In: Peleg, D. (ed.) DISC 2011. LNCS, vol. 6950, pp. 404–415. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-24100-0_39

    Chapter  Google Scholar 

  2. Bernstein, A.: Fully dynamic (2 + epsilon) approximate all-pairs shortest paths with fast query and close to linear update time. In: 50th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2009, Atlanta, Georgia, USA, 25–27 October 2009, pp. 693–702 (2009)

    Google Scholar 

  3. Chechik, S.: Compact routing schemes with improved stretch. In: ACM Symposium on Principles of Distributed Computing, PODC 2013, Montreal, QC, Canada, 22–24 July 2013, pp. 33–41 (2013)

    Google Scholar 

  4. Chechik, S.: Approximate distance oracles with constant query time. In: STOC (2014)

    Google Scholar 

  5. Chechik, S.: Approximate distance oracles with improved bounds. In: STOC (2015)

    Google Scholar 

  6. Chen, W., Sommer, C., Teng, S.-H., Wang, Y.: Compact routing in power-law graphs. In: Keidar, I. (ed.) DISC 2009. LNCS, vol. 5805, pp. 379–391. Springer, Heidelberg (2009). https://doi.org/10.1007/978-3-642-04355-0_41

    Chapter  Google Scholar 

  7. Henzinger, M., Krinninger, S., Nanongkai, D.: Dynamic approximate all-pairs shortest paths: breaking the O(mn) barrier and derandomization. SIAM J. Comput. 45(3), 947–1006 (2016)

    Article  MathSciNet  Google Scholar 

  8. Lacki, J., Ocwieja, J., Pilipczuk, M., Sankowski, P., Zych, A.: The power of dynamic distance oracles: efficient dynamic algorithms for the Steiner tree. In: Proceedings of the Forty-Seventh Annual ACM on Symposium on Theory of Computing, STOC 2015, Portland, OR, USA, 14–17 June 2015, pp. 11–20 (2015)

    Google Scholar 

  9. Mendel, M., Naor, A.: Ramsey partitions and proximity data structures. In: 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2006), 21–24 October 2006, Berkeley, California, USA, Proceedings, pp. 109–118 (2006)

    Google Scholar 

  10. Patrascu, M., Roditty, L.: Distance oracles beyond the Thorup-Zwick bound. SIAM J. Comput. 43, 300–311 (2014)

    Article  MathSciNet  Google Scholar 

  11. Patrascu, M., Roditty, L., Thorup, M.: A new infinity of distance oracles for sparse graphs. In: FOCS (2012)

    Google Scholar 

  12. Qi, Z., Xiao, Y., Shao, B., Wang, H.: Toward a distance oracle for billion-node graphs. PVLDB 7(1), 61–72 (2013)

    Google Scholar 

  13. Roditty, L., Tov, R.: New routing techniques and their applications. In: Proceedings of the 2015 ACM Symposium on Principles of Distributed Computing, PODC 2015, Donostia-San Sebastián, Spain, 21–23 July 2015, pp. 23–32 (2015)

    Google Scholar 

  14. Roditty, L., Tov, R.: Close to linear space routing schemes. Distrib. Comput. 29(1), 65–74 (2015). https://doi.org/10.1007/s00446-015-0256-5

    Article  MathSciNet  MATH  Google Scholar 

  15. Roditty, L., Tov, R.: Approximate distance oracles with improved stretch for sparse graphs (2021). https://github.com/roei-tov/Approximate-Distance-Oracles-with-Improved-Stretch-for-Sparse-Graphs

  16. Roditty, L., Zwick, U.: Dynamic approximate all-pairs shortest paths in undirected graphs. SIAM J. Comput. 41(3), 670–683 (2012). https://doi.org/10.1137/090776573

    Article  MathSciNet  MATH  Google Scholar 

  17. Sommer, C., Verbin, E., Yu, W.: Distance oracles for sparse graphs. In: FOCS (2009)

    Google Scholar 

  18. Thorup, M., Zwick, U.: Compact routing schemes. In: SPAA, pp. 1–10 (2001)

    Google Scholar 

  19. Thorup, M., Zwick, U.: Approximate distance oracles. J. ACM 52, 1–24 (2005)

    Article  MathSciNet  Google Scholar 

  20. Wulff-Nilsen, C.: Approximate distance oracles with improved query time. In: Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2013, New Orleans, Louisiana, USA, 6–8 January 2013, pp. 539–549 (2013)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Roditty, L., Tov, R. (2021). Approximate Distance Oracles with Improved Stretch for Sparse Graphs. In: Chen, CY., Hon, WK., Hung, LJ., Lee, CW. (eds) Computing and Combinatorics. COCOON 2021. Lecture Notes in Computer Science(), vol 13025. Springer, Cham. https://doi.org/10.1007/978-3-030-89543-3_8

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-89543-3_8

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-89542-6

  • Online ISBN: 978-3-030-89543-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics