arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1806.06726cs.DS
收藏

邮编树

Zip Trees

Robert E. Tarjan, Caleb C. Levy, Stephen Timmel

摘要:

我们介绍了压缩树,一种随机二叉搜索树的形式,它将以前的想法集成到一个实用,高性能和易于实现的包中。压缩树是一种二叉搜索树,其中每个节点都有一个数字排名,并且树是相对于排名的(最大)堆排序,排名关系被打破,有利于更小的键。Zip树本质上是Treaps(Seidel and Aragon 1996),除了等级是从几何分布而不是均匀分布中绘制的,并且我们允许等级关系。这些变化使我们能够在每个节点上使用更少的随机位。我们通过取消合并和合并路径(“unzipping”和“zipping”)而不是通过旋转来执行插入和删除,这避免了一些指针更改并提高了效率。压缩和解压缩的方法从以前的自上而下的插入和删除方法中获得灵感(Stephenson 1980; Martínez and Roura 1998; Sprugnoli 1980)。从理论的角度来看,这项工作提供了两个主要结果。首先,zip树只需要$O(\log \log n)$位(具有高概率)来表示$n$节点二叉搜索树中的最大秩;以前的数据结构需要$O(\log n)$位来表示最大秩。第二,压缩树自然同构于跳表(Pugh 1990),并简化了跳表和二叉搜索树之间的映射(Dean and Jones 2007)。

英文摘要:

We introduce the zip tree, a form of randomized binary search tree that integrates previous ideas into one practical, performant, and pleasant-to-implement package. A zip tree is a binary search tree in which each node has a numeric rank and the tree is (max)-heap-ordered with respect to ranks, with rank ties broken in favor of smaller keys. Zip trees are essentially treaps (Seidel and Aragon 1996), except that ranks are drawn from a geometric distribution instead of a uniform distribution, and we allow rank ties. These changes enable us to use fewer random bits per node. We perform insertions and deletions by unmerging and merging paths ("unzipping" and "zipping") rather than by doing rotations, which avoids some pointer changes and improves efficiency. The methods of zipping and unzipping take inspiration from previous top-down approaches to insertion and deletion (Stephenson 1980; Martínez and Roura 1998; Sprugnoli 1980). From a theoretical standpoint, this work provides two main results. First, zip trees require only $O(\log \log n)$ bits (with high probability) to represent the largest rank in an $n$-node binary search tree; previous data structures require $O(\log n)$ bits for the largest rank. Second, zip trees are naturally isomorphic to skip lists (Pugh 1990), and simplify the mapping of (Dean and Jones 2007) between skip lists and binary search trees.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑