超简洁树--一种新的通用树source codes及其最优压缩树数据结构和范围最小值
Hypersuccinct Trees -- New universal tree source codes for optimal compressed tree data structures and range minima
摘要:
我们提出了一个新的通用源代码的分布无标记的二进制和有序树,实现最佳的压缩范围内较低的顺序为现有的通用代码所涵盖的所有树源。同时,它支持在字RAM上以恒定时间回答压缩表示上的许多导航查询;这对于任何现有的树压缩方法都是不可能的。由此产生的数据结构,“超简洁树”,因此结合了由最好的通用代码实现的压缩与最好的简洁树数据结构的操作支持。我们应用超简洁树,以获得一个通用的压缩数据结构的范围最小查询。它具有恒定的查询时间和$2n+o(n)$位的最佳最坏情况空间使用,但是对于$n$元素的随机排列,空间平均下降到$1.736n + o(n)$位,而对于$r$增加运行的数组,空间平均下降到$2\lg\binom nr + o(n)$位。这两个结果都是最优的;前者回答了Davoodi et al.(2014)和Golin et al.(2016)的一个开放问题。与以前的工作相比,简洁的数据结构,我们不需要定制我们的数据结构,以特定的应用程序;超简洁的树自动适应手头的树。我们表明,它们同时实现了最佳的空间利用率,以在较低的顺序项范围广泛的分布在树的形状,包括:通过随机阵列的随机顺序插入生成的二叉搜索树(BST)/笛卡尔树、随机条纹平衡BST、具有给定数目的二进制/一元/叶节点的二叉树、从无记忆源生成的随机二进制尝试、全二叉树、一元路径以及均匀选择的权重平衡BST、AVL树和左倾红黑树。
英文摘要:
We present a new universal source code for distributions of unlabeled binary and ordinal trees that achieves optimal compression to within lower order terms 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. We apply hypersuccinct trees to obtain a universal compressed data structure for range-minimum queries. It has constant query time and the optimal worst-case space usage of $2n+o(n)$ bits, but the space drops to $1.736n + o(n)$ bits on average for random permutations of $n$ elements, and $2\lg\binom nr + o(n)$ for arrays with $r$ increasing runs, respectively. Both results are optimal; the former answers an open problem of Davoodi et al. (2014) and Golin et al. (2016). 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 they simultaneously achieve the optimal space usage to within lower order terms for a wide range of distributions over tree shapes, including: binary search trees (BSTs) generated by insertions in random order / 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。