Optimal binary search trees with costs depending on the access paths

Citations of this article
Mendeley users who have this article in their library.
Get full text


We describe algorithms for constructing optimal binary search trees, in which the access cost of a key depends on the k preceding keys which were reached in the path to it. This problem has applications to searching on secondary memory and robotics. Two kinds of optimal trees are considered, namely optimal worst case trees and weighted average case trees. The time and space complexities of both algorithms are O(nk+2) and O(nk+1), respectively. The algorithms are based on a convenient decomposition and characterizations of sequences of keys which are paths of special kinds in binary search trees. Finally, using generating functions, we present an exact analysis of the number of steps performed by the algorithms.




Szwarcfiter, J. L., Navarro, G., Baeza-Yates, R., de Oliveira, J. S., Cunto, W., & Ziviani, N. (2003). Optimal binary search trees with costs depending on the access paths. Theoretical Computer Science, 290(3), 1799–1814. https://doi.org/10.1016/S0304-3975(02)00084-1

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free