AN EVALUATION OF SELF-ADJUSTING BINARY SEARCH TREE TECHNIQUES

被引:17
作者
BELL, J
GUPTA, G
机构
[1] Department of Computer Science, James Cook University, Townsville, Queensland
关键词
BINARY TREES; SPLAY TREES; AVL TREES; SELF-ADJUSTING TREES;
D O I
10.1002/spe.4380230403
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Much has been said in praise of self-adjusting data structures, particularly self-adjusting binary search trees. Self-adjusting trees are most suited to skewed key-access distributions as the techniques attempt to place the most commonly accessed keys near the root of the tree. Theoretical bounds on worst-case and amortized performance (i.e. performance over a sequence of operations) have been derived which compare well with those for optimal binary search trees. In this paper, we compare the performance of three different techniques for self-adjusting trees with that of AVL and random binary search trees. Comparisons are made for various tree sizes, levels of key-access-frequency skewness and ratios of insertions and deletions to searches. The results show that, because of the high cost of maintaining self-adjusting trees, in almost all cases the AVL tree outperforms all the self-adjusting trees and in many cases even a random binary search tree has better performance, in terms of CPU time, than any of the self-adjusting trees. Self-adjusting trees seem to perform best in a highly dynamic environment, contrary to intuition.
引用
收藏
页码:369 / 382
页数:14
相关论文
共 9 条
[1]   SELF-ORGANIZING BINARY SEARCH TREES [J].
ALLEN, B ;
MUNRO, I .
JOURNAL OF THE ACM, 1978, 25 (04) :526-535
[2]  
BAER JL, 1975, 1975 P AFIPS NCC, V44, P467
[3]   HEURISTICS THAT DYNAMICALLY ORGANIZE DATA-STRUCTURES [J].
BITNER, JR .
SIAM JOURNAL ON COMPUTING, 1979, 8 (01) :82-110
[4]   EFFICIENT ALGORITHMS TO GLOBALLY BALANCE A BINARY SEARCH TREE [J].
CHANG, H ;
IYENGAR, SS .
COMMUNICATIONS OF THE ACM, 1984, 27 (07) :695-702
[5]  
KNUTH KE, 1973, ARTH COMPUTER PROGRA, V3
[6]  
Nievergelt J., 1973, SIAM Journal on Computing, V2, P33, DOI 10.1137/0202005
[7]  
REINGOLD EM, 1983, DATA STRUCTURES
[8]   SELF-ADJUSTING BINARY SEARCH-TREES [J].
SLEATOR, DD ;
TARJAN, RE .
JOURNAL OF THE ACM, 1985, 32 (03) :652-686
[9]   TREE REBALANCING IN OPTIMAL TIME AND SPACE [J].
STOUT, QF ;
WARREN, BL .
COMMUNICATIONS OF THE ACM, 1986, 29 (09) :902-908