Optimal Binary Search Trees with Near Minimal Height

Suppose we have n keys, n access probabilities for the keys, and n+1 access probabilities for the gaps between the keys. Let h_min(n) be the minimal height of a binary search tree for n keys. We consider the problem to construct an optimal binary search tree with near minimal height, i.e.\ with height h <= h_min(n) + Delta for some fixed Delta. It is shown, that for any fixed Delta optimal binary search trees with near minimal height can be constructed in time O(n^2). This is as fast as in the unrestricted case. So far, the best known algorithms for the construction of height-restricted optimal binary search trees have running time O(L n^2), whereby L is the maximal permitted height. Compared to these algorithms our algorithm is at least faster by a factor of log n, because L is lower bounded by log n.

[1]  Klaus Neumann,et al.  Operations research , 1993 .

[2]  L. Gotlieb Optimal Multi-Way Search Trees , 1981, SIAM J. Comput..

[3]  S. V. Nagaraj,et al.  Optimal Binary Search Trees , 1997, Theor. Comput. Sci..

[4]  Vijay K. Vaishnavi,et al.  Optimum multiway search trees , 1980, Acta Informatica.

[5]  Alon Itai,et al.  Optimal Alphabetic Trees , 1976, SIAM J. Comput..

[6]  Travis Gagie Restructuring binary search trees revisited , 2005, Inf. Process. Lett..

[7]  Donald E. Knuth,et al.  Optimum binary search trees , 1971, Acta Informatica.

[8]  Russell L. Wessner Optimal Alphabetic Search Trees With Restricted Maximal Height , 1976, Inf. Process. Lett..

[9]  Travis Gagie New Ways to Construct Binary Search Trees , 2003, ISAAC.

[10]  Peter Becker,et al.  A New Algorithm for the Construction of Optimal B-Trees , 1994, Nord. J. Comput..