Space-Efficient Depth-First Search via Augmented Succinct Graph Encodings
Michael Elberfeld, Frank Kammer, Johannes Meintrup
TL;DR
This work develops a space-efficient framework for performing depth-first search on separable graphs by introducing a succinct nested-division encoding. The core idea is to partition graphs into multi-scale pieces with boundary vertices that mediate inter-piece interactions, enabling a DFS from any start vertex in $o(n)$ time with $o(n)$ extra bits and embedding the DFS tree for constant-time related queries. The approach combines recursive divisions, boundary-vertex translation mappings via fully indexable dictionaries, and augmentations that store limited, carefully chosen meta-information in a strongly local fashion. For planar graphs, the authors show linear-time, linear-space construction and offer a compact variant, broadening practical applicability to a broad class of sparse graphs. Overall, the paper delivers a practical, sublinear-space DFS framework with direct support for common DFS-associated queries, benefiting algorithms that need meta-information such as $s$-$t$ numbering, lowpoints, and LCAs without incurring large memory overhead.
Abstract
We call a graph $G$ separable if a balanced separator can be computed for $G$ of size $O(n^c)$ with $c<1$. Many real-world graphs are separable such as graphs of bounded genus, graphs of constant treewidth, and graphs excluding a fixed minor $H$. In particular, the well-known planar graphs are separable. We present a succinct encoding of separable graphs $G$ such that any number of depth-first searches DFS can be performed, from any given start vertex, each in $o(n)$ time with $o(n)$ additional bits. After the execution of a DFS, the succinct encoding of $G$ is augmented such that the DFS tree is encoded inside the encoding. Afterward, the encoding provides common DFS-related queries in constant time. These queries include queries such as lowest-common ancestor of two given vertices in the DFS tree or queries that output the lowpoint of a given vertex in the DFS tree. Furthermore, for planar graphs, we show that the succinct encoding can be computed in $O(n)$ bits and expected linear time, and a compact variant can be constructed in $O(n)$ time and bits.
