Skip to main content
Log in

Fast Dynamic Transitive Closure with Lookahead

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

In this paper we consider the problem of dynamic transitive closure with lookahead. We present a randomized one-sided error algorithm with updates and queries in O(n ω(1,1,ε)−ε) time given a lookahead of n ε operations, where ω(1,1,ε) is the exponent of multiplication of n×n matrix by n×n ε matrix. For ε≤0.294 we obtain an algorithm with queries and updates in O(n 2−ε) time, whereas for ε=1 the time is O(n ω−1). This is essentially optimal as it implies an O(n ω) algorithm for boolean matrix multiplication. We also consider the offline transitive closure in planar graphs. For this problem, we show an algorithm that requires \(O(n^{\frac{\omega}{2}})\) time to process \(n^{\frac{1}{2}}\) operations. We also show a modification of these algorithms that gives faster amortized queries. Finally, we give faster algorithms for restricted type of updates, so called element updates. All of the presented algorithms are randomized with one-sided error.

All our algorithms are based on dynamic algorithms with lookahead for matrix inverse, which are of independent interest.

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

References

  1. Bunch, J., Hopcroft, J.: Triangular factorization and inversion by fast matrix multiplication. Math. Comput. 28, 231–236 (1974)

    Article  MATH  MathSciNet  Google Scholar 

  2. Coppersmith, D.: Rectangular matrix multiplication revisited. J. Complex. 13(1), 42–49 (1997)

    Article  MATH  MathSciNet  Google Scholar 

  3. Coppersmith, D., Winograd, S.: Matrix multiplication via arithmetic progressions. J. Symb. Comput. 9(3), 251–280 (1990)

    Article  MATH  MathSciNet  Google Scholar 

  4. Demetrescu, C., Italiano, G.F.: Fully dynamic transitive closure: Breaking through the O(n 2) barrier. In: Proceedings of the 40th IEEE Symposium on Foundations of Computer Science, pp. 381–389 (2000)

  5. Even, S., Shiloach, Y.: An on-line edge-deletion problem. J. ACM 28(1), 1–4 (1981)

    Article  MATH  MathSciNet  Google Scholar 

  6. Henzinger, M.R., King, V.: Fully dynamic biconnectivity and transitive closure. In: Proceedings of the 35th IEEE Symposium on Foundations of Computer Science, pp. 664–672 (1995)

  7. Huang, X., Pan, V.Y.: Fast rectangular matrix multiplication and applications. J. Complex. 14(2), 257–299 (1998)

    Article  MATH  MathSciNet  Google Scholar 

  8. Khanna, S., Motwani, R., Wilson, R.H.: On certificates and lookahead in dynamic graph problems. Algorithmica 21(4), 377–394 (1998)

    Article  MATH  MathSciNet  Google Scholar 

  9. King, V.: Fully dynamic algorithms for maintaining all-pairs shortest paths and transitive closure in digraphs. In: Proceedings of the 40th IEEE Symposium on Foundations of Computer Science, pp. 81–91 (1999)

  10. King, V., Sagert, G.: A fully dynamic algorithm for maintaining the transitive closure. In: Proceedings of the Thirty-First Annual ACM Symposium on Theory of Computing, pp. 492–498. ACM, New York (1999)

    Chapter  Google Scholar 

  11. Lipton, R.J., Rose, D.J., Tarjan, R.E.: Generalized nested dissection. SIAM J. Numer. Anal. 16, 346–358 (1979)

    Article  MATH  MathSciNet  Google Scholar 

  12. Roditty, L.: A faster and simpler fully dynamic transitive closure. In: Proceedings of the Fourteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 404–412. Society for Industrial and Applied Mathematics, Philadelphia (2003)

    Google Scholar 

  13. Roditty, L., Zwick, U.: Improved dynamic reachability algorithms for directed graphs. In: Proceedings of the 43rd IEEE Symposium on Foundations of Computer Science, p. 679 (2002)

  14. Roditty, L., Zwick, U.: A fully dynamic reachability algorithm for directed graphs with an almost linear update time. In: Proceeding of the 36th Annual ACM Symposium on Theory of Computing. ACM, New York (2004)

    Google Scholar 

  15. Sankowski, P.: Dynamic transitive closure via dynamic matrix inverse. In: 45th Annual IEEE Symposium on Foundations of Computer Science (2004)

  16. Sankowski, P.: Faster dynamic matchings and vertex connectivity. In: SODA ’07: Proceedings of the Eighteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 118–126. Society for Industrial and Applied Mathematics, Philadelphia (2007)

    Google Scholar 

  17. Schwartz, J.T.: Fast probabilistic algorithms for verification of polynomial identities. J. Algorithms 10, 701–717 (1980)

    Google Scholar 

  18. Subramanian, S.: A fully dynamic data structure for reachability in planar digraphs. In: Proceedings of the First Annual European Symposium on Algorithms, pp. 372–383. Springer, New York (1993)

    Google Scholar 

  19. Yannakakis, M.: Graph-theoretic methods in database theory. In: Proceedings of the Ninth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, pp. 230–242. ACM, New York (1990)

    Chapter  Google Scholar 

  20. Zippel, R.E.: Probabilistic algorithms for sparse polynomials. In: Proceedings of EUROSAM 79. Lecture Notes in Computer Science, vol. 72, pp. 216–226. Springer, New York (1979)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Piotr Sankowski.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Sankowski, P., Mucha, M. Fast Dynamic Transitive Closure with Lookahead. Algorithmica 56, 180–197 (2010). https://doi.org/10.1007/s00453-008-9166-2

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-008-9166-2

Keywords

Navigation