English

Fully-Functional Static and Dynamic Succinct Trees

Data Structures and Algorithms 2010-09-27 v5

Abstract

We propose new succinct representations of ordinal trees, which have been studied extensively. It is known that any nn-node static tree can be represented in 2n+o(n)2n + o(n) bits and a number of operations on the tree can be supported in constant time under the word-RAM model. However the data structures are complicated and difficult to dynamize. We propose a simple and flexible data structure, called the range min-max tree, that reduces the large number of relevant tree operations considered in the literature to a few primitives that are carried out in constant time on sufficiently small trees. The result is extended to trees of arbitrary size, achieving 2n+O(n/\polylog(n))2n + O(n /\polylog(n)) bits of space. The redundancy is significantly lower than any previous proposal. Our data structure builds on the range min-max tree to achieve 2n+O(n/logn)2n+O(n/\log n) bits of space and O(logn)O(\log n) time for all the operations. We also propose an improved data structure using 2n+O(nloglogn/logn)2n+O(n\log\log n/\log n) bits and improving the time to the optimal O(logn/loglogn)O(\log n/\log \log n) for most operations. Furthermore, we support sophisticated operations that allow attaching and detaching whole subtrees, in time \Order(log1+ϵn/loglogn)\Order(\log^{1+\epsilon} n / \log\log n). Our techniques are of independent interest. One allows representing dynamic bitmaps and sequences supporting rank/select and indels, within zero-order entropy bounds and optimal time O(logn/loglogn)O(\log n / \log\log n) for all operations on bitmaps and polylog-sized alphabets, and O(lognlogσ/(loglogn)2)O(\log n \log \sigma / (\log\log n)^2) on larger alphabet sizes σ\sigma. This improves upon the best existing bounds for entropy-bounded storage of dynamic sequences, compressed full-text self-indexes, and compressed-space construction of the Burrows-Wheeler transform.

Keywords

Cite

@article{arxiv.0905.0768,
  title  = {Fully-Functional Static and Dynamic Succinct Trees},
  author = {Gonzalo Navarro and Kunihiko Sadakane},
  journal= {arXiv preprint arXiv:0905.0768},
  year   = {2010}
}
R2 v1 2026-06-21T12:58:42.485Z