Should Static Search Trees Ever Be Unbalanced?
arXiv:1006.3715
Abstract
In this paper we study the question of whether or not a static search tree should ever be unbalanced. We present several methods to restructure an unbalanced k-ary search tree into a new tree that preserves many of the properties of while having a height of which is one unit off of the optimal height. More specifically, we show that it is possible to ensure that the depth of the elements in is no more than their depth in plus at most . At the same time it is possible to guarantee that the average access time in tree is no more than the average access time in tree plus . This suggests that for most applications, a balanced tree is always a better option than an unbalanced one since the balanced tree has similar average access time and much better worst case access time.