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

Abstract

We call a graph G separable if a balanced separator can be computed for G of size O(nc) 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.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…