1. Thresholds and optimal binary comparison search trees
- Author
-
Sampath Kannan, Richard J. Anderson, Howard Karloff, and Richard E. Ladner
- Subjects
Computational Mathematics ,Control and Optimization ,AVL tree ,K-ary tree ,Computational Theory and Mathematics ,Binary search tree ,Optimal binary search tree ,Interval tree ,Self-balancing binary search tree ,Algorithm ,Random binary tree ,Mathematics ,Range tree - Abstract
We present an O(n4)-time algorithm for the following problem: Given a set of items with known access frequencies, find the optimal binary search tree under the realistic assumption that each comparison can only result in a two-way decision: either an equality comparison or a less-than comparisons. This improves the best known result of O(n5) time, which is based on split tree algorithms. Our algorithm relies on establishing thresholds on the frequency of an item that can occur as an equality comparison at the root of an optimal tree.
- Published
- 2002
- Full Text
- View/download PDF