Skip to main content

Fast and Simple Connectivity in Graph Timelines

  • Conference paper
  • First Online:
Algorithms and Data Structures (WADS 2015)

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

Included in the following conference series:

Abstract

In this paper we study the problem of answering connectivity queries about a graph timeline. A graph timeline is a sequence of undirected graphs \(G_1,\ldots ,G_t\) on a common set of vertices of size n such that each graph is obtained from the previous one by an addition or a deletion of a single edge. We present data structures, which preprocess the timeline and can answer the following queries:

  • \(\mathtt {forall}(u,v,a,b)\) – does the path \(u\rightarrow v\) exist in each of \(G_a,\ldots ,G_b\)?

  • \(\mathtt {exists}(u,v,a,b)\) – does the path \(u\rightarrow v\) exist in any of \(G_a,\ldots ,G_b\)?

  • \(\mathtt {forall2}(u,v,a,b)\) – do there exist two edge-disjoint paths connecting u and v in each of \(G_a,\ldots ,G_b\)?

We show data structures that can answer \(\mathtt {forall}\) and \(\mathtt {forall2}\) queries in \(O(\log n)\) time after preprocessing in \(O(m+t\log n)\) time. Here by m we denote the number of edges that remain unchanged in each graph of the timeline. For the case of \(\mathtt {exists}\) queries, we show how to extend an existing data structure to obtain a preprocessing/query trade-off of \(\langle O(m+\min (nt, t^{2-\alpha })), O(t^\alpha )\rangle \) and show a matching conditional lower bound.

A. Karczmarz—Supported by the grant NCN2014/13/B/ST6/01811 of the Polish Science Center. Partially supported by FET IP project MULTIPLEX 317532.

J. Łącki —Jakub Łącki is a recipient of the Google Europe Fellowship in Graph Algorithms, and this research is supported in part by this Google Fellowship.

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 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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Alon, N., Yuster, R., Zwick, U.: Finding and counting given length cycles. Algorithmica 17(3), 209–223 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  2. Casteigts, A., Flocchini, P., Quattrociocchi, W., Santoro, N.: Time-varying graphs and dynamic networks. IJPEDS 27(5), 387–408 (2012)

    Google Scholar 

  3. Crochemore, M., Hancart, C., Lecroq, T.: Algorithms on Strings. Cambridge University Press, New York (2007)

    Book  MATH  Google Scholar 

  4. Eppstein, D.: Offline algorithms for dynamic minimum spanning tree problems. J. Algorithms 17(2), 237–250 (1994)

    Article  MathSciNet  Google Scholar 

  5. Holm, J., de Lichtenberg, K., Thorup, M.: Poly-logarithmic deterministic fully-dynamic algorithms for connectivity, minimum spanning tree, 2-edge, and biconnectivity. J. ACM 48(4), 723–760 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  6. Karp, R.M., Miller, R.E., Rosenberg, A.L.: Rapid identification of repeated patterns in strings, trees and arrays. In: Proceedings of the 4th Annual ACM Symposium on Theory of Computing, May 1–3, 1972, Denver, Colorado, USA, pp. 125–136 (1972)

    Google Scholar 

  7. Kempe, D., Kleinberg, J.M., Kumar, A.: Connectivity and inference problems for temporal networks. J. Comput. Syst. Sci. 64(4), 820–842 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  8. Kuhn, F., Lynch, N.A., Oshman, R.: Distributed computation in dynamic networks. In: Schulman, L.J. (ed.) Proceedings of the 42nd ACM Symposium on Theory of Computing, STOC 2010, Cambridge, Massachusetts, USA, 5–8 June 2010, pp. 513–522. ACM (2010)

    Google Scholar 

  9. Łącki, J., Sankowski, P.: Reachability in graph timelines. In: Proceedings of the 4th Conference on Innovations in Theoretical Computer Science, ITCS 2013, pp. 257–268. ACM, New York (2013)

    Google Scholar 

  10. Pătrşcu, M.: Towards polynomial lower bounds for dynamic problems. In: Proceedings of the Forty-second ACM Symposium on Theory of Computing, STOC 2010, pp. 603–610. ACM, New York (2010)

    Google Scholar 

  11. Williams, V.V., Williams, R.: Subcubic equivalences between path, matrix and triangle problems. In: Proceedings of the 2010 IEEE 51st Annual Symposium on Foundations of Computer Science, FOCS 2010, pp. 645–654. IEEE Computer Society, Washington, DC (2010)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Adam Karczmarz .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Karczmarz, A., Łącki, J. (2015). Fast and Simple Connectivity in Graph Timelines. In: Dehne, F., Sack, JR., Stege, U. (eds) Algorithms and Data Structures. WADS 2015. Lecture Notes in Computer Science(), vol 9214. Springer, Cham. https://doi.org/10.1007/978-3-319-21840-3_38

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-21840-3_38

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-21839-7

  • Online ISBN: 978-3-319-21840-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics