arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1503.03105cs.DSmath.CO
收藏

自调整二叉搜索树:是什么让它们滴答作响?

Self-Adjusting Binary Search Trees: What Makes Them Tick?

Parinya Chalermsook, Mayank Goswami, Laszlo Kozma, Kurt Mehlhorn, Thatchaphol Saranurak

摘要:

展开树(Sleator和Tarjan)满足所谓的访问引理。是什么让自调整二叉搜索树(BST)满足访问引理?在每次访问之后,自调整BST用同一组节点上的树(后树)替换搜索路径。我们确定两个简单的组合性质的搜索路径和后树,意味着访问引理。我们的主要结果(i)暗示了所有最小自调整BST算法的访问引理,已知它是成立的:展开树及其对局部算法类的推广(Subramanian,Georgakopoulos和Mc-Clurkin),以及由Demaine等人引入的Greedy BST,并证明满足Fox的访问引理,(ii)意味着基于“严格”深度减半的BST算法满足访问引理,解决了自1985年以来多次提出的开放问题,和(iii)产生一个非常短的证明为O(log n log log n)摊销访问成本的路径平衡启发式(由Sleator提出),匹配最知名的界(Balasubramanian和拉曼)的低阶因子。我们的组合性质之一是局部性。我们表明,任何BST算法,满足访问引理,通过总和的日志(SOL)的潜力是必要的本地。另一个属性指出后树的叶子数加上搜索路径中的边交替数之和必须至少是搜索路径长度的常数分数。我们表明,这种性质的弱形式是必要的顺序存取是线性的。

英文摘要:

Splay trees (Sleator and Tarjan) satisfy the so-called access lemma. Many of the nice properties of splay trees follow from it. What makes self-adjusting binary search trees (BSTs) satisfy the access lemma? After each access, self-adjusting BSTs replace the search path by a tree on the same set of nodes (the after-tree). We identify two simple combinatorial properties of the search path and the after-tree that imply the access lemma. Our main result (i) implies the access lemma for all minimally self-adjusting BST algorithms for which it was known to hold: splay trees and their generalization to the class of local algorithms (Subramanian, Georgakopoulos and Mc-Clurkin), as well as Greedy BST, introduced by Demaine et al. and shown to satisfy the access lemma by Fox, (ii) implies that BST algorithms based on "strict" depth-halving satisfy the access lemma, addressing an open question that was raised several times since 1985, and (iii) yields an extremely short proof for the O(log n log log n) amortized access cost for the path-balance heuristic (proposed by Sleator), matching the best known bound (Balasubramanian and Raman) to a lower-order factor. One of our combinatorial properties is locality. We show that any BST-algorithm that satisfies the access lemma via the sum-of-log (SOL) potential is necessarily local. The other property states that the sum of the number of leaves of the after-tree plus the number of side alternations in the search path must be at least a constant fraction of the length of the search path. We show that a weak form of this property is necessary for sequential access to be linear.

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

↑