arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.04919cs.DS
收藏

光滑堆与细堆的分析

Analysis of Smooth Heaps and Slim Heaps

Maria Hartmann, László Kozma, Corwin Sinnamon, Robert E. Tarjan

摘要:

光滑堆是最近引入的自调整堆[Kozma,Saranurak,2018],类似于配对堆[Fredman,Sedgewick,Sleator,Tarjan,1986]。光滑堆是作为Greedy BST的堆对应物获得的,Greedy BST是一种二叉搜索树更新策略,被证明是\emph{instance-optimal} [Lucas,1988],[Munro,2000]。光滑堆的几个自适应特性来自于这种联系;此外,光滑堆本身已经被证明是特定类别堆中的实例最优。然而,到目前为止,还没有对平滑堆的一般分析,只有以前的分析表明,当在\emph{sorting mode}中使用时($n$插入,然后是$n$删除-min操作),平滑堆在$O(n\lg n)$时间内对$n$数进行排序。在本文中,我们描述了一个更简单的变体的光滑堆,我们称之为\emph{slim heap}。我们给出了一个新的,自包含的分析光滑堆和超薄堆在不受限制的操作,获得摊销的界限,匹配已知的最佳界限的自调整堆。先前的实验工作已经发现,在各种设置中,配对堆在这类中主导其他数据结构。我们的测试表明,平滑堆和瘦堆与配对堆相比具有竞争力,在某些情况下表现优于它们,同时易于实现。

英文摘要:

The smooth heap is a recently introduced self-adjusting heap [Kozma, Saranurak, 2018] similar to the pairing heap [Fredman, Sedgewick, Sleator, Tarjan, 1986]. The smooth heap was obtained as a heap-counterpart of Greedy BST, a binary search tree updating strategy conjectured to be \emph{instance-optimal} [Lucas, 1988], [Munro, 2000]. Several adaptive properties of smooth heaps follow from this connection; moreover, the smooth heap itself has been conjectured to be instance-optimal within a certain class of heaps. Nevertheless, no general analysis of smooth heaps has existed until now, the only previous analysis showing that, when used in \emph{sorting mode} ($n$ insertions followed by $n$ delete-min operations), smooth heaps sort $n$ numbers in $O(n\lg n)$ time. In this paper we describe a simpler variant of the smooth heap we call the \emph{slim heap}. We give a new, self-contained analysis of smooth heaps and slim heaps in unrestricted operation, obtaining amortized bounds that match the best bounds known for self-adjusting heaps. Previous experimental work has found the pairing heap to dominate other data structures in this class in various settings. Our tests show that smooth heaps and slim heaps are competitive with pairing heaps, outperforming them in some cases, while being comparably easy to implement.

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

↑