Skip to main content

Deterministic Performance Guarantees for Bidirectional BFS on Real-World Networks

  • Conference paper
  • First Online:
Combinatorial Algorithms (IWOCA 2023)

Abstract

A common technique for speeding up shortest path queries in graphs is to use a bidirectional search, i.e., performing a forward search from the start and a backward search from the destination until a common vertex on a shortest path is found. In practice, this has a massive impact on performance in some real-world networks, while it seems to save only a constant factor in other types of networks. Although finding shortest paths is a ubiquitous problem, only few studies have attempted to explain the apparent asymptotic speedups on some networks using average case analysis on certain models of real-world network.

In this paper we provide a new perspective on this, by analyzing deterministic properties that allow theoretical analysis and that can be easily checked on any particular instance. We prove that these parameters imply sublinear running time for the bidirectional breadth-first search in several regimes, some of which are tight. Furthermore, we perform experiments on a large set of real-world networks and show that our parameters capture the concept of practical running time well.

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 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.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

References

  1. Bast, H., et al.: Route planning in transportation networks. In: Algorithm Engineering - Selected Results and Surveys, Lecture Notes in Computer Science, vol. 9220, pp. 19–80 (2016). https://doi.org/10.1007/978-3-319-49487-6_2

  2. Bläsius, T., Fischbeck, P.: 3006 networks (unweighted, undirected, simple, connected) from Network Repository (2022). https://doi.org/10.5281/zenodo.6586185

  3. Bläsius, T., Freiberger, C., Friedrich, T., Katzmann, M., Montenegro-Retana, F., Thieffry, M.: Efficient shortest paths in scale-free networks with underlying hyperbolic geometry. ACM Trans. Algorithms 18(2) (2022). https://doi.org/10.1145/3516483

  4. Bläsius, T., Wilhelm, M.: Deterministic performance guarantees for bidirectional bfs on real-world networks. Computing Research Repository (CoRR) abs/2209.15300 (2022). https://doi.org/10.48550/arXiv.2209.15300

  5. Borassi, M., Crescenzi, P., Trevisan, L.: An axiomatic and an average-case analysis of algorithms and heuristics for metric properties of graphs. In: Proceedings of the 28th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2017, pp. 920–939. SIAM (2017). https://doi.org/10.1137/1.9781611974782.58

  6. Borassi, M., Natale, E.: KADABRA is an adaptive algorithm for betweenness via random approximation. ACM J. Exp. Algorithmics 24(1), 1.2:1–1.2:35 (2019). https://doi.org/10.1145/3284359

  7. Erdős, P., Rényi, A.: On random graphs I. Publicationes Mathematicae 6, 290–297 (1959). https://www.renyi.hu/~p_erdos/1959-11.pdf

  8. Fox, J., Roughgarden, T., Seshadhri, C., Wei, F., Wein, N.: Finding cliques in social networks: a new distribution-free model. SIAM J. Comput. 49(2), 448–464 (2020). https://doi.org/10.1137/18M1210459

  9. Rossi, R.A., Ahmed, N.K.: The network data repository with interactive graph analytics and visualization. In: AAAI (2015). https://networkrepository.com

  10. Roughgarden, T., Seshadhri, C.: Distribution-free models of social networks, Chap. 28, pp. 606–625. Cambridge University Press (2021). https://doi.org/10.1017/9781108637435.035

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Marcus Wilhelm .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Bläsius, T., Wilhelm, M. (2023). Deterministic Performance Guarantees for Bidirectional BFS on Real-World Networks. In: Hsieh, SY., Hung, LJ., Lee, CW. (eds) Combinatorial Algorithms. IWOCA 2023. Lecture Notes in Computer Science, vol 13889. Springer, Cham. https://doi.org/10.1007/978-3-031-34347-6_9

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-34347-6_9

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-34346-9

  • Online ISBN: 978-3-031-34347-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics