Depth First Search in the Semi-streaming Model

01/11/2019
by   Shahbaz Khan, et al.
0

Depth first search (DFS) tree is a fundamental data structure for solving various graph problems. The classical DFS algorithm requires O(m+n) time for a graph having n vertices and m edges. In the streaming model, an algorithm is allowed several passes (preferably single) over the input graph having a restriction on the size of local space used. Trivially, a DFS tree can be computed using a single pass using O(m) space. In the semi-streaming model allowing O(n) space, it can be computed in O(n) passes, where each pass adds one vertex to the DFS tree. However, it remains an open problem to compute a DFS tree using o(n) passes using o(m) space even in any relaxed streaming environment. We present the first semi-streaming algorithms that compute a DFS tree of an undirected graph in o(n) passes using o(m) space. We first describe an extremely simple algorithm that requires at most n/k passes using O(nk) space, where k is any positive integer. We then improve this algorithm by using more involved techniques to reduce the number of passes to h/k under similar space constraints, where h is the height of the computed DFS tree. In particular, this algorithm improves the bounds for the case where the computed DFS tree is shallow (having o(n) height). Moreover, this algorithm is presented as a framework that allows the flexibility of using any algorithm to maintain a DFS tree of a stored sparser subgraph as a black box, which may be of independent interest. Both these algorithms essentially demonstrate the existence of a trade-off between the space and number of passes required for computing a DFS tree. Furthermore, we evaluate these algorithms experimentally which reveals their exceptional performance in practice. For both random and real graphs, they require merely a few passes even when allowed just O(n) space.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/19/2018

Coloring in Graph Streams

In this paper, we initiate the study of the vertex coloring problem of a...
research
01/21/2020

Streaming Complexity of Spanning Tree Computation

The semi-streaming model is a variant of the streaming model frequently ...
research
09/30/2021

Deterministic Graph Coloring in the Streaming Model

Recent breakthroughs in graph streaming have led to the design of single...
research
12/12/2017

Approximate Convex Hull of Data Streams

Given a finite set of points P ⊆R^d, we would like to find a small subse...
research
11/05/2019

Weighted Min-Cut: Sequential, Cut-Query and Streaming Algorithms

Consider the following 2-respecting min-cut problem. Given a weighted g...
research
10/16/2018

Nearly Optimal Space Efficient Algorithm for Depth First Search

We design a space-efficient algorithm for performing depth-first search ...
research
01/17/2021

The Complexity of Bicriteria Tree-Depth

This work considers the following extension of the tree-depth problem: f...

Please sign up or login with your details

Forgot password? Click here to reset