具有近似最小高度的最优二叉搜索树
Optimal Binary Search Trees with Near Minimal Height
摘要:
假设我们有n个密钥,密钥的n个访问概率,以及密钥之间的间隙的n+1个访问概率。设h_min(n)是n个关键字的二叉搜索树的最小高度。我们考虑的问题是构造一个最优的二叉搜索树,具有接近最小的高度,即对于某个固定的Delta,高度h <= h_min(n)+ Delta。它表明,对于任何固定的Delta最优二叉搜索树具有接近最小的高度可以在O(n^2)的时间内构建。这与不受限制的情况一样快。到目前为止,最著名的构造高度受限的最优二叉搜索树的算法的运行时间为O(L n^2),其中L是最大允许高度。与这些算法相比,我们的算法至少快了log n倍,因为L是log n的下界。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。