Abstract
We present an O(n 4)-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 comparison. This improves the best known result of O(n 5) 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.
Research supported in part by ONR grant N00014-97-1-0505 and NSF grant CCR- 9820885.
Research supported in part by NSF grant CCR-9732746.
Research performed in part while at AT&T Labs-Research, Florham Park, NJ 07932, and supported in part by NSF grant CCR-9732828.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
P.J. Bayer. Improved Bounds on the Cost of Optimaland Balanced Binary Search Trees. M.Sc. Thesis, MIT, MIT/LCS/TM-69, 1975.
C. Chambers and W. Chen. Efficient Multiple and Predicate Dispatching. Proceedings of the 1999 ACM Conference on Object-Oriented Programming Languages, Systems, and Applications (OOPSLA’ 99), November, 1999.
R.G. Gallager. Information Theory and Reliable Communication. Wiley, New York, 1968.
A.M. Garsia and M.L. Wachs. A New Algorithm for Minimum Cost Binary Trees. SIAM Journal on Computing, Vol. 6, pp. 622–242, 1977.
J.H. Hester, D.S. Hirschberg, S.-H.S. Huang, and C.K. Wong. Faster Construction of OptimalBinary Split Trees. Journal of Algorithms, Vol. 7, pp. 412–424, 1986.
T.C. Hu and A.C. Tucker. Optimal Computer-Search Trees, and Variable Length Alphabetic Codes. SIAM Journal on Applied Mathematics, Vol. 21, pp. 514–532, 1971.
S.-H.S. Huang and C.K. Wong. Optimal Binary Split Trees. Journal of Algorithms, Vol. 5, pp. 69–79, 1984.
D.A. Huffman. A Method for the Construction of Minimum Redundancy Codes. Proc. Institute of Radio Engineers, Vol. 40, pp. 1098–1101, 1952.
D.E. Knuth. The Art of Computer Programming: Volume 3, Second Edition, Sorting and Searching. Addison-Wesley, Reading, Massachusetts, 1998.
K. Mehlhorn. A Best Possible Bound for the Weighted Path Length of Binary Search Trees. SIAM Journal on Computing, Vol. 6, pp. 235–239, 1977.
Y. Perl. Optimum Split Trees. Journal of Algorithms, Vol. 5, pp. 367–374, 1984.
B.A. Sheil. Median Split Trees: A Fast Lookup Technique for Frequently Occurring Keys. Communications of the ACM, Vol. 21, pp. 947–958, 1978.
D. Spuler. Optimal Search Trees Using Two-Way Key Comparisons. Acta Informatica, Vol. 32, pp. 729–740, 1994.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2001 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Anderson, R., Kannan, S., Karloff, H., Ladner, R.E. (2001). Thresholds and Optimal Binary Comparison Search Trees. In: Hariharan, R., Vinay, V., Mukund, M. (eds) FST TCS 2001: Foundations of Software Technology and Theoretical Computer Science. FSTTCS 2001. Lecture Notes in Computer Science, vol 2245. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45294-X_8
Download citation
DOI: https://doi.org/10.1007/3-540-45294-X_8
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-43002-5
Online ISBN: 978-3-540-45294-2
eBook Packages: Springer Book Archive