Depth-first search (DFS) is a well-known graph traversal algorithm and can be performed in O(n + m) time for a graph with n vertices and m edges. We consider the dynamic DFS problem, that is, to maintain a DFS tree of an undirected graph G under the condition that edges and vertices are gradually inserted into or deleted from G. We present an algorithm for this problem, which takes worst-case O(√mn. polylog(n)) time per update and requires only (3m + o(m)) log n bits of space. This algorithm reduces the space usage of dynamic DFS algorithm to only 1.5 times as much space as that of the adjacency list of the graph. We also show applications of our dynamic DFS algorithm to dynamic connectivity, biconnectivity, and 2-edge-connectivity problems under vertex insertions and deletions.
CITATION STYLE
Nakamura, K., & Sadakane, K. (2019). Space-efficient fully dynamic DFS in undirected graphs. Algorithms, 12(3). https://doi.org/10.3390/A12030052
Mendeley helps you to discover research relevant for your work.