Hypersuccinct Trees – New universal tree source codes for optimal compressed tree data structures

04/27/2021
by   J. Ian Munro, et al.
0

We present a new universal source code for unlabeled binary and ordinal trees that achieves asymptotically optimal compression for all tree sources covered by existing universal codes. At the same time, it supports answering many navigational queries on the compressed representation in constant time on the word-RAM; this is not known to be possible for any existing tree compression method. The resulting data structures, "hypersuccinct trees", hence combine the compression achieved by the best known universal codes with the operation support of the best succinct tree data structures. Compared to prior work on succinct data structures, we do not have to tailor our data structure to specific applications; hypersuccinct trees automatically adapt to the trees at hand. We show that it simultaneously achieves the asymptotically optimal space usage for a wide range of distributions over tree shapes, including: random binary search trees (BSTs) / Cartesian trees of random arrays, random fringe-balanced BSTs, binary trees with a given number of binary/unary/leaf nodes, random binary tries generated from memoryless sources, full binary trees, unary paths, as well as uniformly chosen weight-balanced BSTs, AVL trees, and left-leaning red-black trees. Using hypersuccinct trees, we further obtain the first data structure that answers range-minimum queries on a random permutation of n elements in constant time and using the optimal 1.736n + o(n) bits on average, solving an open problem of Davoodi et al. (2014) and Golin et al. (2016).

READ FULL TEXT

page 32

page 33

page 38

research
03/06/2019

Entropy Trees and Range-Minimum Queries In Optimal Average-Case Space

The range-minimum query (RMQ) problem is a fundamental data structuring ...
research
09/18/2023

On Random Tree Structures, Their Entropy, and Compression

Measuring the complexity of tree structures can be beneficial in areas t...
research
07/14/2023

Zip-zip Trees: Making Zip Trees More Balanced, Biased, Compact, or Persistent

We define simple variants of zip trees, called zip-zip trees, which prov...
research
10/20/2022

Noisy Tree Data Structures and Quantum Applications

The paper presents a technique for constructing noisy data structures ca...
research
06/12/2019

On Universal Codes for Integers: Wallace Tree, Elias Omega and Variations

A universal code for the (positive) integers can be used to store or com...
research
10/16/2019

Tree-Shape Grammars for Random Access

Shape grammars are well known in the graphics and design communities but...
research
10/19/2010

Random Projection Trees Revisited

The Random Projection Tree structures proposed in [Freund-Dasgupta STOC0...

Please sign up or login with your details

Forgot password? Click here to reset