Nearly Optimal Space Efficient Algorithm for Depth First Search

10/16/2018
by   Jayesh Choudhari, et al.
0

We design a space-efficient algorithm for performing depth-first search traversal(DFS) of a graph in O(m+n^* n) time using O(n) bits of space. While a normal DFS algorithm results in a DFS-tree (in case the graph is connected), our space bounds do not permit us even to store such a tree. However, our algorithm correctly outputs all edges of the DFS-tree. The previous best algorithm (which used O(n) working space) took O(m n) time (Asano, Izumi, Kiyomi, Konagaya, Ono, Otachi, Schweitzer, Tarui, Uehara (ISAAC 2014) and Elmasry, Hagerup, Krammer (STACS 2015)). The main open question left behind in this area was to design faster algorithm for DFS using O(n) bits of space. Our algorithm answers this open question as it has a nearly optimal running time (as the DFS takes O(m+n) time even if there is no space restriction).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/19/2019

Space Efficient Algorithms for Breadth-Depth Search

Continuing the recent trend, in this article we design several space-eff...
research
05/30/2018

Space-Efficient DFS and Applications: Simpler, Leaner, Faster

The problem of space-efficient depth-first search (DFS) is reconsidered....
research
07/23/2020

Sampling connected subgraphs: nearly-optimal mixing time bounds, nearly-optimal ε-uniform sampling, and perfect uniform sampling

We study the connected subgraph sampling problem: given an integer k ≥ 3...
research
10/12/2022

A nearly optimal randomized algorithm for explorable heap selection

Explorable heap selection is the problem of selecting the nth smallest v...
research
08/12/2019

Space-Efficient Construction of Compressed Suffix Trees

We show how to build several data structures of central importance to st...
research
12/28/2018

Fast Breadth-First Search in Still Less Space

It is shown that a breadth-first search in a directed or undirected grap...
research
01/11/2019

Depth First Search in the Semi-streaming Model

Depth first search (DFS) tree is a fundamental data structure for solvin...

Please sign up or login with your details

Forgot password? Click here to reset