Skip to main content
Log in

Linear-Size hopsets with small hopbound, and constant-hopbound hopsets in RNC

  • Published:
Distributed Computing Aims and scope Submit manuscript

Abstract

Hopsets are a fundamental graph-theoretic and graph-algorithmic construct, and they are widely used for distance-related problems in a variety of computational settings. Currently existing constructions of hopsets produce hopsets either with \(\Omega (n \log n)\) edges, or with a hopbound \(n^{\Omega (1)}\). In this paper we devise a construction of linear-size hopsets with hopbound (ignoring the dependence on \(\epsilon \)) \((\log \log n)^{\log \log n + O(1)}\). This improves the previous hopbound for linear-size hopsets almost exponentially. We also devise efficient implementations of our construction in PRAM and distributed settings. The only existing PRAM algorithm [19] for computing hopsets with a constant (i.e., independent of n) hopbound requires \(n^{\Omega (1)}\) time. We devise a PRAM algorithm with polylogarithmic running time for computing hopsets with a constant hopbound, i.e., our running time is exponentially better than the previous one. Moreover, these hopsets are also significantly sparser than their counterparts from [19]. We apply these hopsets to achieve the following online variant of shortest paths in the PRAM model: preprocess a given weighted graph within polylogarithmic time, and then given any query vertex v, report all approximate shortest paths from v in constant time. All previous constructions of hopsets require either polylogarithmic time per query or polynomial preprocessing time.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Notes

  1. We may use \(G\cup H\) instead of \(G\cup G_H\) for notational convenience.

  2. The class RNC (Randomized Nick’s Class) stands for the class of problems that can be solved on a randomized parallel computer with polynomially many processors in polylogarithmic time.

  3. This is not an error. Indeed, the lower bound is meaningless for \(\epsilon >1/\log \kappa \).

  4. The aspect ratio \(\Lambda \) of a graph G is given by \(\Lambda = {{\max _{u,v \in V} d_G(u,v)} \over {\min _{u,v\in V, u\ne v} d_G(u,v)}}\).

  5. To the best of our understanding, the algorithm of [5] scales linearly with s for the s-SSP problem, and so, for large s, the state-of-the-art bounds are based on hopsets.

  6. A graph \(G' = (V,E',\omega ')\) is called a sublinear-error emulator of an unweighted graph \(G = (V,E)\), if for every pair of vertices \(u,v \in V\), we have \(d_{G}(u,v) \le d_{G'}(u,v) \le d_G(u,v) + \alpha (d_G(u,v))\) for some sub-linear stretch function \(\alpha \). If \(G'\) is a subgraph of G, it is called a sublinear-error spanner of G.

  7. Our construction is simpler than that of [4] in two aspects: First, [4] use truncated TZ-bunches, while we use the standard TZ bunches. Second, [4] applies the construction for all possible distances scales, while we apply it just once. The distributed implementations of [26, 27, 38] are even more complicated, since the hop-reduction technique requires a recursive application of the construction.

  8. Our definition is slightly different than that of [43], which used \(p_i=|A_i|/n^{1+\nu }\), but it gives rise to the same expected size of \(A_i\). We use our version since it allows efficient implementation in various models of computation.

  9. We stress that we define bunches in the same way as [43]. As mentioned above, the only difference is the probabilities for the sets \(A_i\).

  10. Typically, in the CONGEST model only messages of size \(O(\log n)\) bits are allowed, but edge weights are restricted to be at most polynomial in n. Our definition is geared to capture a more general situation, when there is no restriction on the aspect ratio. Hence results achieved in our more general model are more general than previous ones.

  11. The cluster C(v) is defined as follows: each point \(u\in C(v)\) iff \(v\in B(u)\).

  12. In the CONGEST model one needs to multiply the bound by an \(O(\log _n\log \Lambda )\) factor.

References

  1. Awerbuch, B., Berger, B., Cowen, L., Peleg, D.: Near-linear cost sequential and distribured constructions of sparse neighborhood covers. In 34th Annual Symposium on Foundations of Computer Science, Palo Alto, California, USA, 3-5, 638–647, (1993)

  2. Abboud, A., Bodwin, G., Pettie, S.: A hierarchy of lower bounds for sublinear additive spanners. In Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2017, Barcelona, Spain, Hotel Porta Fira, January 16-19, 568–576, (2017)

  3. Andoni, A., Stein, C., Zhong, P.: Parallel approximate undirected shortest paths via low hop emulators. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, STOC, 322-335, New York, NY, USA, (2020). Association for Computing Machinery

  4. 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, October 25-27, Atlanta, Georgia, USA, 693–702, (2009)

  5. Becker, R., Karrenbauer, A., Krinninger, S., Lenzen, C.: Near-optimal approximate shortest paths and transshipment in distributed and streaming models. In 31st International Symposium on Distributed Computing, DISC, October 16-20, Vienna, Austria, pages 7:1–7:16, (2017)

  6. Censor-Hillel, K., Dory, M., Korhonen, J.H., Leitersdorf, D.: Fast approximate shortest paths in the congested clique. In Robinson, P., Ellen, F. (eds), Proceedings of the 2019 ACM Symposium on Principles of Distributed Computing, PODC 2019, Toronto, ON, Canada, July 29 - August 2, 74–83. ACM, (2019)

  7. Chaudhuri, P.: Parallel algorithms - designs and analysis. Advances in computer science series. Prentice Hall, (1992)

  8. Cohen, M.B., Madry, A., Sankowski, P., Vladu, A.: Negative-weight shortest paths and unit capacity minimum cost flow in õ (m\({}^{\text{10/7}}\) log W) time (extended abstract). In Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2017, Barcelona, Spain, Hotel Porta Fira, January 16-19, pages 752–771, (2017)

  9. Cohen, E: Fast algorithms for constructing t-spanners and paths with stretch t. In 34th Annual Symposium on Foundations of Computer Science, Palo Alto, California, USA, 3-5 November 1993, pages 648–658, (1993)

  10. Cohen, E.: Using selective path-doubling for parallel shortest-path computations. J. Algorithms 22(1), 30–56 (1997)

    Article  MathSciNet  Google Scholar 

  11. Cohen, E.: Polylog-time and near-linear work approximation scheme for undirected shortest paths. J. ACM 47(1), 132–166 (2000)

    Article  MathSciNet  Google Scholar 

  12. Dory, M., Parter, M.: Exponentially faster shortest paths in the congested clique. In Proceedings of the 39th Symposium on Principles of Distributed Computing, PODC 20, page 59-68, New York, NY, USA, (2020). Association for Computing Machinery

  13. Elkin, M.: Computing almost shortest paths. In Proc. 20th ACM Symp. on Principles of Distributed Computing, 53–62, (2001)

  14. Elkin, M.: Distributed exact shortest paths in sublinear time. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2017, pages 757–770, New York, NY, USA, (2017). ACM

  15. Elkin, M., Matar, S.: Deterministic pram approximate shortest paths in polylogarithmic time and near-linear work. (2020). manuscript

  16. Elkin, M., Neiman, O.: On efficient distributed construction of near optimal routing schemes: Extended abstract. In Proceedings of the 2016 ACM Symposium on Principles of Distributed Computing, PODC ’16, pages 235–244, New York, NY, USA, (2016). ACM

  17. Elkin, M., Neiman, O.: Linear-size hopsets with small hopbound, and distributed routing with low memory. CoRR, arXiv:1704.08468, (2017)

  18. Elkin, M., Neiman, O.: Near-optimal distributed routing with low memory. In Proceedings of the 2018 ACM Symposium on Principles of Distributed Computing, PODC 2018, Egham, United Kingdom, July 23-27, 2018, pages 207–216 (2018)

  19. Elkin, M., Neiman, O.: Hopsets with constant hopbound, and applications to approximate shortest paths. SIAM J. Comput. 48(4), 1436–1480 (2019)

    Article  MathSciNet  Google Scholar 

  20. Elkin, M., Neiman, O.: Linear-size hopsets with small hopbound, and constant-hopbound hopsets in RNC. In The 31st ACM on Symposium on Parallelism in Algorithms and Architectures, SPAA 2019, Phoenix, AZ, USA, June 22-24, 2019., pages 333–341, (2019)

  21. Elkin, M., Peleg, D.: (1+epsilon, beta)-spanner constructions for general graphs. SIAM J. Comput. 33(3), 608–631 (2004)

    Article  MathSciNet  Google Scholar 

  22. Elkin, M., Zhang, J.: Efficient algorithms for constructing (1+epsilon, beta)-spanners in the distributed and streaming models. Distributed Computing 18(5), 375–385 (2006)

    Article  Google Scholar 

  23. Friedrichs, S., Lenzen, C.: Parallel metric tree embedding based on an algebraic view on moore-bellman-ford. In Proceedings of the 28th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA ’16, pages 455–466, New York, NY, USA, (2016). ACM

  24. Gupta, S., Kosowski, A., Viennot, L: Exploiting hopsets: Improved distance oracles for graphs of constant highway dimension and beyond. In Christel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi, editors, 46th International Colloquium on Automata, Languages, and Programming, ICALP 2019, July 9-12, 2019, Patras, Greece, volume 132 of LIPIcs, pages 143:1–143:15. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, (2019)

  25. Han, Y.: Deterministic sorting in o(nloglogn) time and linear space. J. Algorithms 50(1), 96–105 (2004)

    Article  MathSciNet  Google Scholar 

  26. Henzinger, M., Krinninger, S., Nanongkai, D.: Decremental single-source shortest paths on undirected graphs in near-linear total update time. In 55th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2014, Philadelphia, PA, USA, October 18-21, 2014, pages 146–155, (2014)

  27. Henzinger, M., Krinninger, S., Nanongkai, D.: A deterministic almost-tight distributed algorithm for approximating single-source shortest paths. In Proceedings of the Forty-eighth Annual ACM Symposium on Theory of Computing, STOC ’16, pages 489–498, New York, NY, USA, (2016). ACM

  28. Huang, S.-E., Pettie, S.: Thorup-zwick emulators are universally optimal hopsets. Information Processing Letters 142, 04 (2017)

    MathSciNet  MATH  Google Scholar 

  29. Han, Y., Thorup, M.: Integer sorting in 0(n sqrt (log log n)) expected time and linear space. In 43rd Symposium on Foundations of Computer Science (FOCS 2002), 16-19 November 2002, Vancouver, BC, Canada, Proceedings, pages 135–144, (2002)

  30. Klein, P.N., Subramanian, S.: A randomized parallel algorithm for single-source shortest paths. J. Algorithms 25(2), 205–220 (1997)

    Article  MathSciNet  Google Scholar 

  31. Kucera, L.: Parallel computation and conflicts in memory access. Inform. Process. Lett. 14, 93–96 (1981)

    Article  MathSciNet  Google Scholar 

  32. Li, J.: Faster parallel algorithm for approximate shortest path. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2020, page 308-321, New York, NY, USA, (2020). Association for Computing Machinery

  33. Leighton, F.T., Maggs, B.M., Rao, S.: Packet routing and job-shop scheduling in (congestion + dilation) steps. Combinatorica 14(2), 167–186 (1994)

    Article  MathSciNet  Google Scholar 

  34. Lenzen, C., Patt-Shamir, B.: Fast partial distance estimation and applications. In Proceedings of the 2015 ACM Symposium on Principles of Distributed Computing, PODC 2015, Donostia-San Sebastián, Spain, July 21 - 23, 2015, pages 153–162, (2015)

  35. Lenzen, C., Patt-Shamir, B., Peleg, D.: Distributed distance computation and routing with small messages, (2016). manuscript

  36. Madry, A.: Computing maximum flow with augmenting electrical flows. In IEEE 57th Annual Symposium on Foundations of Computer Science, FOCS 2016, 9-11 October, Hyatt Regency, New Brunswick, New Jersey, USA, pages 593–602, (2016)

  37. Miller, G.L., Peng, R., Vladu, A., Xu, S.C.: Improved parallel algorithms for spanners and hopsets. In Proceedings of the 27th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA ’15, pages 192–201, New York, NY, USA, (2015). ACM

  38. Nanongkai, D.: Distributed approximation algorithms for weighted shortest paths. In: Symposium on Theory of Computing, STOC, New York, NY, USA, May 31 - June 03, 565–573, (2014)

  39. Orlin, J.B.: Max flows in o(nm) time, or better. In: Symposium on Theory of Computing Conference, STOC’13, Palo Alto, CA, USA, June 1-4, 2013, pages 765–774, (2013)

  40. Shi, H., Spencer, T.H.: Time-work tradeoffs of the single-source shortest paths problem. J. Algorithms 30(1), 19–32 (1999)

    Article  MathSciNet  Google Scholar 

  41. Shiloach, Y., Vishkin, U.: Finding the maximum, merging, and sorting in a parallel computation model. J. Algorithms 2(1), 88–102 (1981)

    Article  MathSciNet  Google Scholar 

  42. Thorup, M., Zwick, U.: Approximate distance oracles. In Proc. of the 33rd ACM Symp. on Theory of Computing, 183–192, (2001)

  43. Thorup, M., Zwick, U.: Spanners and emulators with sublinear distance errors. In Proc. of Symp. on Discr. Algorithms, 802–809, (2006)

  44. Ullman, J.D., Yannakakis, M.: High-probability parallel transitive-closure algorithms. SIAM J. Comput. 20(1), 100–125 (1991)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ofer Neiman.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

A preliminary version of this paper was published in SPAA’19 [20]. M. Elkin: This research was supported by the ISF grant No. (724/15). O. Neiman: Supported in part by ISF grant No. (1817/17) and by BSF grant No. 2015813.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Elkin, M., Neiman, O. Linear-Size hopsets with small hopbound, and constant-hopbound hopsets in RNC. Distrib. Comput. 35, 419–437 (2022). https://doi.org/10.1007/s00446-022-00431-z

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00446-022-00431-z

Navigation