Skip to main content

Space Efficient Algorithms for Breadth-Depth Search

  • Conference paper
  • First Online:
Fundamentals of Computation Theory (FCT 2019)

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

Included in the following conference series:

Abstract

Continuing the recent trend, in this article we design several space-efficient algorithms for two well-known graph search methods. Both these search methods share the same name breadth-depth search (henceforth BDS), although they work entirely in different fashion. The classical implementation for these graph search methods takes \(O(m+n)\) time and \(O(n \lg n)\) bits of space in the standard word RAM model (with word size being \(\varTheta (\lg n)\) bits), where m and n denotes the number of edges and vertices of the input graph respectively. Our goal here is to beat the space bound of the classical implementations, and design \(o(n \lg n)\) space algorithms for these search methods by paying little to no penalty in the running time. Note that our space bounds (i.e., with \(o(n \lg n)\) bits of space) do not even allow us to explicitly store the required information to implement the classical algorithms, yet our algorithms visits and reports all the vertices of the input graph in correct order.

This work was partially supported by JST CREST Grant Number JPMJCR1402.

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

    We use \(\lg \) to denote logarithm to the base 2.

  2. 2.

    Our algorithm performs atmost \(O(m+n)\) insertion/deletion/retrieval during its entire execution using the dictionary of Theorem 2 which takes O(1) time with a probability of \((1-1/n^c)\) (where \(c \ge 3\)) for each insertion/deletion/retrieval. Thus, the probability that our algorithm takes more than \(O(m+n)\) time is \((1/n^{c-2})\) by union bound rule.

References

  1. Asano, T., et al.: Depth-first search using \(O(n)\) bits. In: Ahn, H.-K., Shin, C.-S. (eds.) ISAAC 2014. LNCS, vol. 8889, pp. 553–564. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-13075-0_44

    Chapter  Google Scholar 

  2. Banerjee, N., Chakraborty, S., Raman, V., Satti, S.R.: Space efficient linear time algorithms for BFS, DFS and applications. Theory Comput. Syst. (2018)

    Google Scholar 

  3. Banyassady, B., et al.: Improved time-space trade-offs for computing voronoi diagrams. In: 34th STACS, pp. 9:1–9:14 (2017)

    Google Scholar 

  4. Chakraborty, S.: Space efficient graph algorithms. Ph.D. thesis. The Institute of Mathematical Sciences, HBNI, India (2018)

    Google Scholar 

  5. Chakraborty, S., Jo, S., Satti, S.R.: Improved space-efficient linear time algorithms for some classical graph problems. CoRR, abs/1712.03349 (2017)

    Google Scholar 

  6. Chakraborty, S., Mukherjee, A., Raman, V., Satti, S.R.: A framework for in-place graph algorithms. In: 26th ESA, pp. 13:1–13:16 (2018)

    Google Scholar 

  7. Chakraborty, S., Raman, V., Satti, S.R.: Biconnectivity, st-numbering and other applications of DFS using \({\rm O}(n)\) bits. J. Comput. Syst. Sci. 90, 63–79 (2017)

    Article  MathSciNet  Google Scholar 

  8. Chakraborty, S., Satti, S.R.: Space-efficient algorithms for maximum cardinality search, its applications, and variants of BFS. J. Comb. Optim. 37(2), 465–481 (2018)

    Article  MathSciNet  Google Scholar 

  9. Corneil, D.G., Krueger, R.: A unified view of graph searching. SIAM J. Discrete Math. 22(4), 1259–1276 (2008)

    Article  MathSciNet  Google Scholar 

  10. Demaine, E.D., der Heide, F.M., Pagh, R., Pǎtraşcu, M.: De dictionariis dynamicis pauco spatio utentibus. In: Correa, J.R., Hevia, A., Kiwi, M. (eds.) LATIN 2006. LNCS, vol. 3887, pp. 349–361. Springer, Heidelberg (2006). https://doi.org/10.1007/11682462_34

    Chapter  Google Scholar 

  11. Elmasry, A., Hagerup, T., Kammer, F.: Space-efficient basic graph algorithms. In: 32nd STACS, pp. 288–301 (2015)

    Google Scholar 

  12. Greenlaw, R.: Breadth-depth search is P-complete. Parallel Process. Lett. 3, 209–222 (1993)

    Article  MathSciNet  Google Scholar 

  13. Horowitz, E., Sahni, S.: Fundamentals of Computer Algorithms. Computer Science Press (1978)

    Google Scholar 

  14. Jiang, B.: I/O-and CPU-optimal recognition of strongly connected components. Inf. Process. Lett. 45(3), 111–115 (1993)

    Article  MathSciNet  Google Scholar 

  15. Kiyomi, M., Ono, H., Otachi, Y., Schweitzer, P., Tarui, J.: Space-efficient algorithms for longest increasing subsequence. In: 35th STACS, pp. 44:1–44:15 (2018)

    Google Scholar 

  16. Lincoln, A., Williams, V.V., Wang, J.R., Williams, R.R.: Deterministic time-space trade-offs for k-sum. In: 43rd ICALP, pp. 58:1–58:14 (2016)

    Google Scholar 

  17. Tarjan, R.E., Yannakakis, M.: Simple linear-time algorithms to test chordality of graphs, test acyclicity of hypergraphs, and selectively reduce acyclic hypergraphs. SIAM J. Comput. 13(3), 566–579 (1984)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Srinivasa Rao Satti .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Chakraborty, S., Mukherjee, A., Satti, S.R. (2019). Space Efficient Algorithms for Breadth-Depth Search. In: GÄ…sieniec, L., Jansson, J., Levcopoulos, C. (eds) Fundamentals of Computation Theory. FCT 2019. Lecture Notes in Computer Science(), vol 11651. Springer, Cham. https://doi.org/10.1007/978-3-030-25027-0_14

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-25027-0_14

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-25026-3

  • Online ISBN: 978-3-030-25027-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics