Constructing Optimal Search Trees in Optimal Time

  • Authors:
  • S. Q. Zheng;M. Sun

  • Affiliations:
  • Univ. of Texas at Dallas, Richardson;Covance Inc., Princeton, NJ

  • Venue:
  • IEEE Transactions on Computers
  • Year:
  • 1999

Quantified Score

Hi-index 14.98

Visualization

Abstract

$(a,b)$-trees are an important class of search trees. They include 2-3 trees, 2-3-4 trees, and $B$-trees as subclasses. We show that a space-minimum $(a,b)$-tree is also height-minimum and present an optimal algorithm for constructing $(a,b)$-trees that are height-minimum and space-minimum. Given $n$ keys, our algorithm constructs an $(a,b)$-tree with minimum height and fewest possible nodes. Our algorithm takes $\Theta(n)$ time if the keys in $S$ are sorted and $\Theta(n \log n )$ time if the keys are not sorted. We also discuss possible applications of our algorithm.