Universal Succinct Representations of Trees?

We consider the succinct representation of ordinal and cardinal trees on the RAM with logarithmic word size. Given a tree T , our representations support the following operations in O (1) time: (i) $\mbox{{\tt BP-substring}}(i,b)$, which reports the substring of length b bits (b is at most the wordsize) beginning at position i of the balanced parenthesis representation of T , (ii) $\mbox{{\tt DFUDS-substring}}(i,b)$, which does the same for the depth first unary degree sequence representation, and (iii) a similar operation for tree-partition based representations of T . We give: an asymptotically space-optimal 2n + o (n ) bit representation of n -node ordinal trees that supports all the above operations with b = *** (logn ), answering an open question from [He et al., ICALP'07]. an asymptotically space-optimal C (n ,k ) + o (n )-bit representation of k -ary cardinal trees, that supports (with $b = \Theta(\sqrt{\log n})$) the operations (ii) and (iii) above, on the ordinal tree obtained by removing labels from the cardinal tree, as well as the usual label-based operations. As a result, we obtain a fully-functional cardinal tree representation with the above space complexity. This answers an open question from [Raman et al, SODA'02]. Our new representations are able to simultaneously emulate the BP, DFUDS and partitioned representations using a single instance of the data structure, and thus aim towards universality . They not only support the union of all the ordinal tree operations supported by these representations, but will also automatically inherit any new operations supported by these representations in the future.

[1]  Rajeev Raman,et al.  Succinct Dynamic Dictionaries and Trees , 2003, ICALP.

[2]  Robin Milner,et al.  On Observing Nondeterminism and Concurrency , 1980, ICALP.

[3]  Rajeev Raman,et al.  Succinct indexable dictionaries with applications to encoding k-ary trees, prefix sums and multisets , 2007, ACM Trans. Algorithms.

[4]  R. V. Stee,et al.  Packing Rectangles into 2 OPT Bins Using Rotations , 2008 .

[5]  Naila Rahman,et al.  Engineering succinct DOM , 2008, EDBT '08.

[6]  Ronald L. Graham,et al.  Concrete mathematics - a foundation for computer science , 1991 .

[7]  Kunihiko Sadakane,et al.  Ultra-succinct representation of ordered trees , 2007, SODA '07.

[8]  J. Ian Munro,et al.  A Uniform Approach Towards Succinct Representation of Trees , 2008, SWAT.

[9]  Fabrizio Luccio,et al.  Structuring labeled trees for optimal succinctness, and beyond , 2005, 46th Annual IEEE Symposium on Foundations of Computer Science (FOCS'05).

[10]  Guy Jacobson,et al.  Space-efficient static trees and graphs , 1989, 30th Annual Symposium on Foundations of Computer Science.

[11]  Rajeev Raman,et al.  Succinct ordinal trees with level-ancestor queries , 2004, SODA '04.

[12]  Venkatesh Raman,et al.  Representing dynamic binary trees succinctly , 2001, SODA '01.

[13]  Sartaj Sahni,et al.  Handbook of Data Structures and Applications , 2004 .

[14]  Rajeev Raman,et al.  Representing Trees of Higher Degree , 2005, Algorithmica.

[15]  Xin He,et al.  Compact Encodings of Planar Graphs via Canonical Orderings and Multiple Parentheses , 1998, ICALP.

[16]  Guy Joseph Jacobson,et al.  Succinct static data structures , 1988 .

[17]  Hsueh-I Lu,et al.  Balanced parentheses strike back , 2008, TALG.

[18]  Milan Ruzic,et al.  Uniform deterministic dictionaries , 2008, TALG.

[19]  S. Srinivasa Rao,et al.  Succinct Representations of Functions , 2004, ICALP.

[20]  Venkatesh Raman,et al.  Succinct representation of balanced parentheses, static trees and planar graphs , 1997, Proceedings 38th Annual Symposium on Foundations of Computer Science.