Indexing Graph Search Trees and Applications

We consider the problem of compactly representing the Depth First Search (DFS) tree of a given undirected or directed graph having $n$ vertices and $m$ edges while supporting various DFS related queries efficiently in the RAM with logarithmic word size. We study this problem in two well-known models: {\it indexing} and {\it encoding} models. While most of these queries can be supported easily in constant time using $O(n \lg n)$ bits\footnote{We use $\lg$ to denote logarithm to the base $2$.} of extra space, our goal here is, more specifically, to beat this trivial $O(n \lg n)$ bit space bound, yet not compromise too much on the running time of these queries. In the {\it indexing} model, the space bound of our solution involves the quantity $m$, hence, we obtain different bounds for sparse and dense graphs respectively. In the {\it encoding} model, we first give a space lower bound, followed by an almost optimal data structure with extremely fast query time. Central to our algorithm is a partitioning of the DFS tree into connected subtrees, and a compact way to store these connections. Finally, we also apply these techniques to compactly index the shortest path structure, biconnectivity structures among others.

[1]  Dieter Kratsch,et al.  Space-Efficient Biconnected Components and Recognition of Outerplanar Graphs , 2016, Algorithmica.

[2]  Jérémy Barbay,et al.  Succinct Representation of Labeled Graphs , 2007, Algorithmica.

[3]  Gonzalo Navarro,et al.  Compact Data Structures - A Practical Approach , 2016 .

[4]  Rajeev Raman,et al.  Succinct representations of permutations and functions , 2011, Theor. Comput. Sci..

[5]  Robert E. Tarjan,et al.  Efficient Planarity Testing , 1974, JACM.

[6]  Ronald L. Rivest,et al.  Introduction to Algorithms , 1990 .

[7]  J. Ian Munro,et al.  Succinct Representation of Balanced Parentheses and Static Trees , 2002, SIAM J. Comput..

[8]  J. Ian Munro,et al.  Compressed Representations of Graphs , 2016, Encyclopedia of Algorithms.

[9]  Robert E. Tarjan,et al.  Finding Dominators in Directed Graphs , 1974, SIAM J. Comput..

[10]  Michael A. Bender,et al.  The Level Ancestor Problem Simplified , 2002, LATIN.

[11]  J. Ian Munro,et al.  Succinct representation of dynamic trees , 2011, Theor. Comput. Sci..

[12]  S. Srinivasa Rao,et al.  Space Efficient Linear Time Algorithms for BFS, DFS and Applications , 2017, Theory of Computing Systems.

[13]  S. Srinivasa Rao,et al.  Succinct Data Structures for Families of Interval Graphs , 2019, WADS.

[14]  Robert E. Tarjan,et al.  A Note on Finding the Bridges of a Graph , 1974, Inf. Process. Lett..

[15]  J. Ian Munro,et al.  A Uniform Paradigm to Succinctly Encode Various Families of Trees , 2012, Algorithmica.

[16]  R. K. Shyamasundar,et al.  Introduction to algorithms , 1996 .

[17]  S. Srinivasa Rao,et al.  Improved Space-efficient Linear Time Algorithms for Some Classical Graph Problems , 2017, ArXiv.

[18]  Guy E. Blelloch,et al.  Compact representations of separable graphs , 2003, SODA '03.

[19]  Robert E. Tarjan,et al.  Depth-First Search and Linear Graph Algorithms , 1972, SIAM J. Comput..

[20]  Gonzalo Navarro,et al.  Fast and Compact Planar Embeddings , 2016, WADS.

[21]  Robert E. Tarjan,et al.  Computing an st -Numbering , 1976, Theor. Comput. Sci..

[22]  Sankar Deep Chakraborty Space efficient graph algorithms [HBNI Th 134] , 2018 .

[23]  Shin-Ichi Nakano,et al.  A compact encoding of plane triangulations with efficient query supports , 2005, Inf. Process. Lett..

[24]  S. Srinivasa Rao,et al.  A Framework for In-place Graph Algorithms , 2018, ESA.

[25]  S. Srinivasa Rao,et al.  Space-efficient algorithms for maximum cardinality search, its applications, and variants of BFS , 2019, J. Comb. Optim..

[26]  S. Srinivasa Rao,et al.  Biconnectivity, st-numbering and other applications of DFS using O(n) bits , 2016, J. Comput. Syst. Sci..

[27]  David Richard Clark,et al.  Compact pat trees , 1998 .