English

Space-Efficient Depth-First Search via Augmented Succinct Graph Encodings

Data Structures and Algorithms 2025-04-29 v1

Abstract

We call a graph GG separable if a balanced separator can be computed for GG of size O(nc)O(n^c) with c<1c<1. Many real-world graphs are separable such as graphs of bounded genus, graphs of constant treewidth, and graphs excluding a fixed minor HH. In particular, the well-known planar graphs are separable. We present a succinct encoding of separable graphs GG such that any number of depth-first searches DFS can be performed, from any given start vertex, each in o(n)o(n) time with o(n)o(n) additional bits. After the execution of a DFS, the succinct encoding of GG 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)O(n) bits and expected linear time, and a compact variant can be constructed in O(n)O(n) time and bits.

Keywords

Cite

@article{arxiv.2504.19547,
  title  = {Space-Efficient Depth-First Search via Augmented Succinct Graph Encodings},
  author = {Michael Elberfeld and Frank Kammer and Johannes Meintrup},
  journal= {arXiv preprint arXiv:2504.19547},
  year   = {2025}
}
R2 v1 2026-06-28T23:13:23.537Z