Optimal search trees using two-way key comparisons (Q1342505)
From MaRDI portal
| This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use this page instead for the normal view: Optimal search trees using two-way key comparisons |
scientific article; zbMATH DE number 710532
| Language | Label | Description | Also known as |
|---|---|---|---|
| English | Optimal search trees using two-way key comparisons |
scientific article; zbMATH DE number 710532 |
Statements
Optimal search trees using two-way key comparisons (English)
0 references
11 January 1995
0 references
A generalization of binary search trees and binary split trees is developed that takes advantage of two-way key comparisons: the two-way comparison tree. The two way comparison tree has little use for dynamic situations but is an improvement over the optimal binary search tree and the optimal binary split tree for static data sets. An \(O(n)\) time and space algorithm is presented for constructing an optimal two-way comparison tree when access probabilities are equal, and an exact formula for the optimal cost is developed. The construction of the optimal two- way comparison tree for unequal access frequencies, both successful and unsuccessful, is computable in \(O(n^ 5)\) time and \(O(n^ 3)\) space using algorithms similar to those for the optimal binary split tree. The optimal two-way comparison tree can improve search cost by up to 50\% over the optimal binary search tree.
0 references
binary search trees
0 references
binary split trees
0 references