Space-Efficient DFS and Applications: Simpler, Leaner, Faster
Abstract
The problem of space-efficient depth-first search (DFS) is reconsidered. A particularly simple and fast algorithm is presented that, on a directed or undirected input graph with vertices and edges, carries out a DFS in time with bits of working memory, where is the (total) degree of , for each , and . A slightly more complicated variant of the algorithm works in the same time with at most bits. It is also shown that a DFS can be carried out in a graph with vertices and edges in time with bits or in time with either bits or, for arbitrary integer , bits. These results among them subsume or improve most earlier results on space-efficient DFS. Some of the new time and space bounds are shown to extend to applications of DFS such as the computation of cut vertices, bridges, biconnected components and 2-edge-connected components in undirected graphs.
Cite
@article{arxiv.1805.11864,
title = {Space-Efficient DFS and Applications: Simpler, Leaner, Faster},
author = {Torben Hagerup},
journal= {arXiv preprint arXiv:1805.11864},
year = {2018}
}