z-logo
Premium
An evaluation of self‐adjusting binary search tree techniques
Author(s) -
Bell Jim,
Gupta Gopal
Publication year - 1993
Publication title -
software: practice and experience
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.437
H-Index - 70
eISSN - 1097-024X
pISSN - 0038-0644
DOI - 10.1002/spe.4380230403
Subject(s) - binary search tree , optimal binary search tree , random binary tree , self balancing binary search tree , ternary search tree , weight balanced tree , binary tree , computer science , binary number , intuition , tree (set theory) , k ary tree , key (lock) , mathematics , interval tree , algorithm , theoretical computer science , tree structure , combinatorics , arithmetic , philosophy , computer security , epistemology
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.

This content is not available in your region!

Continue researching here.

Having issues? You can contact us here