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.
Similar content being viewed by others
References
Bunch, J., Hopcroft, J.: Triangular factorization and inversion by fast matrix multiplication. Math. Comput. 28, 231–236 (1974)
Coppersmith, D.: Rectangular matrix multiplication revisited. J. Complex. 13(1), 42–49 (1997)
Coppersmith, D., Winograd, S.: Matrix multiplication via arithmetic progressions. J. Symb. Comput. 9(3), 251–280 (1990)
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)
Even, S., Shiloach, Y.: An on-line edge-deletion problem. J. ACM 28(1), 1–4 (1981)
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)
Huang, X., Pan, V.Y.: Fast rectangular matrix multiplication and applications. J. Complex. 14(2), 257–299 (1998)
Khanna, S., Motwani, R., Wilson, R.H.: On certificates and lookahead in dynamic graph problems. Algorithmica 21(4), 377–394 (1998)
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)
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)
Lipton, R.J., Rose, D.J., Tarjan, R.E.: Generalized nested dissection. SIAM J. Numer. Anal. 16, 346–358 (1979)
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)
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)
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)
Sankowski, P.: Dynamic transitive closure via dynamic matrix inverse. In: 45th Annual IEEE Symposium on Foundations of Computer Science (2004)
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)
Schwartz, J.T.: Fast probabilistic algorithms for verification of polynomial identities. J. Algorithms 10, 701–717 (1980)
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)
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)
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)
Author information
Authors and Affiliations
Corresponding author
Rights 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
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00453-008-9166-2