Should Static Search Trees Ever Be Unbalanced?

Computer Science – Data Structures and Algorithms

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

Scientific paper

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 $T$ into a new tree $R$ that preserves many of the properties of $T$ while having a height of $\log_k n +1$ 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 $R$ is no more than their depth in $T$ plus at most $\log_k \log_k n +2$. At the same time it is possible to guarantee that the average access time $P(R)$ in tree $R$ is no more than the average access time $P(T)$ in tree $T$ plus $O(\log_k P(T))$. 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.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Should Static Search Trees Ever Be Unbalanced? does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Should Static Search Trees Ever Be Unbalanced?, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Should Static Search Trees Ever Be Unbalanced? will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-260896

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.