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

被引:5
作者
Chalermsook, Parinya [1 ]
Goswami, Mayank [1 ]
Kozma, Laszlo [2 ]
Mehlhorn, Kurt [1 ]
Saranurak, Thatchaphol [3 ,4 ]
机构
[1] Max Planck Inst Informat, D-66123 Saarbrucken, Germany
[2] Univ Saarland, Dept Comp Sci, D-66123 Saarbrucken, Germany
[3] KTH Royal Inst Technol, S-11428 Stockholm, Sweden
[4] Univ Saarland, D-66123 Saarbrucken, Germany
来源
ALGORITHMS - ESA 2015 | 2015年 / 9294卷
关键词
SPLAY;
D O I
10.1007/978-3-662-48350-3_26
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Splay trees (Sleator and Tarjan [11]) 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 [12], Georgakopoulos and McClurkin [7]), as well as Greedy BST, introduced by Demaine et al. [5] and shown to satisfy the access lemma by Fox [6], (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 [2]) 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.
引用
收藏
页码:300 / 312
页数:13
相关论文
共 13 条
[1]   SELF-ORGANIZING BINARY SEARCH TREES [J].
ALLEN, B ;
MUNRO, I .
JOURNAL OF THE ACM, 1978, 25 (04) :526-535
[2]  
Balasubramanian R., 1995, P FSTTCS, P338
[3]  
Chalermsook P., 2015, ABS150303105 CORR
[4]  
Cole R., 2000, SIAM Journal on Computing, V30, P44, DOI 10.1137/S009753979732699X
[5]  
Demaine ED, 2009, PROCEEDINGS OF THE TWENTIETH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P496
[6]  
Fox K, 2011, LECT NOTES COMPUT SC, V6844, P411, DOI 10.1007/978-3-642-22300-6_35
[7]   Generalized template splay: A basic theory and calculus [J].
Georgakopoulos, GF ;
McClurkin, DJ .
COMPUTER JOURNAL, 2004, 47 (01) :10-19
[8]  
Lucas J.M., 1988, DCSTR250 RUTG U
[9]  
Munro J. I., 2000, LNCS, V1879, P338, DOI DOI 10.1007/3-540-45253-2
[10]  
Pettie S., 2008, SODA, P1457