A Fully Dynamic Reachability Algorithm for Directed Graphs with an Almost Linear Update Time
Authors:
- Liam RodittyLRLiam Roditty
- Uri ZwickUZUri Zwick
- 1 January 2016
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Computing
- Vol. 45 (3) , 712-733
Abstract
We obtain a new fully dynamic algorithm for the reachability problem in directed graphs. Our algorithm has an amortized update time of $O(m+n\log n)$ and a worst-case query time of $O(n)$, where $m$ is the current number of edges in the graph, and $n$ is the number of vertices in the graph. Each update operation either inserts a set of edges that touch the same vertex, or deletes an arbitrary set of edges. The algorithm is deterministic and uses fairly simple data structures. One of the ingredients used by this new algorithm may be interesting in its own right. It is a new dynamic algorithm for strong connectivity in directed graphs with an interesting ``retrospectiveness'' property. Each insert operation creates a new version of the graph. A delete operation deletes edges from all versions. Strong connectivity queries can be made on each version of the graph. The algorithm handles each update in $O(m\alpha(n))$ amortized time, and each query in $O(1)$ worst-case time, where $\alpha(n)$ is a functional in...
Keywords
This publication has 18 references indexed in Scilit:
- An experimental study of algorithms for fully dynamic transitive closureACM Journal of Experimental Algorithmics, 2008
- Improved Dynamic Reachability Algorithms for Directed GraphsSIAM Journal on Computing, 2008
- Lowest common ancestors in trees and directed acyclic graphsJournal of Algorithms, 2005
- Trade-offs for fully dynamic transitive closure on DAGs: breaking through the O ( n 2 barrierJournal of the ACM, 2005
- An Experimental Study of Dynamic Algorithms for Transitive ClosureACM Journal of Experimental Algorithmics, 2001
- Path-based depth-first search for strong and biconnected componentsInformation Processing Letters, 2000
- On Finding Lowest Common Ancestors: Simplification and ParallelizationSIAM Journal on Computing, 1988
- Finding paths and deleting edges in directed acyclic graphsInformation Processing Letters, 1988
- Fast Algorithms for Finding Nearest Common AncestorsSIAM Journal on Computing, 1984
- A strong-connectivity algorithm and its applications in data flow analysisComputers & Mathematics with Applications, 1981