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

07/14/2023
by   Ofek Gila, et al.
0

We define simple variants of zip trees, called zip-zip trees, which provide several advantages over zip trees, including overcoming a bias that favors smaller keys over larger ones. We analyze zip-zip trees theoretically and empirically, showing, e.g., that the expected depth of a node in an n-node zip-zip tree is at most 1.3863log n-1+o(1), which matches the expected depth of treaps and binary search trees built by uniformly random insertions. Unlike these other data structures, however, zip-zip trees achieve their bounds using only O(loglog n) bits of metadata per node, w.h.p., as compared to the Θ(log n) bits per node required by treaps. In fact, we even describe a “just-in-time” zip-zip tree variant, which needs just an expected O(1) number of bits of metadata per node. Moreover, we can define zip-zip trees to be strongly history independent, whereas treaps are generally only weakly history independent. We also introduce biased zip-zip trees, which have an explicit bias based on key weights, so the expected depth of a key, k, with weight, w_k, is O(log (W/w_k)), where W is the weight of all keys in the weighted zip-zip tree. Finally, we show that one can easily make zip-zip trees partially persistent with only O(n) space overhead w.h.p.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/27/2021

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

We present a new universal source code for unlabeled binary and ordinal ...
research
04/18/2021

Load-Balancing Succinct B Trees

We propose a B tree representation storing n keys, each of k bits, in ei...
research
07/17/2018

Using statistical encoding to achieve tree succinctness never seen before

We propose a new succinct representation of labeled trees which represen...
research
10/17/2019

Engineering Top-Down Weight-Balanced Trees

Weight-balanced trees are a popular form of self-balancing binary search...
research
08/30/2022

Unbalancing Binary Trees

Assuming Zipf's Law to be accurate, we show that existing techniques for...
research
12/13/2017

B-slack trees: Highly Space Efficient B-trees

B-slack trees, a subclass of B-trees that have substantially better wors...
research
03/05/2020

Order-Preserving Key Compression for In-Memory Search Trees

We present the High-speed Order-Preserving Encoder (HOPE) for in-memory ...

Please sign up or login with your details

Forgot password? Click here to reset