Skip to main content

Thresholds and Optimal Binary Comparison Search Trees

Extended Abstract

  • Conference paper
  • First Online:
FST TCS 2001: Foundations of Software Technology and Theoretical Computer Science (FSTTCS 2001)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2245))

  • 460 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. P.J. Bayer. Improved Bounds on the Cost of Optimaland Balanced Binary Search Trees. M.Sc. Thesis, MIT, MIT/LCS/TM-69, 1975.

    Google Scholar 

  2. 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.

    Google Scholar 

  3. R.G. Gallager. Information Theory and Reliable Communication. Wiley, New York, 1968.

    MATH  Google Scholar 

  4. 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.

    Article  MATH  MathSciNet  Google Scholar 

  5. 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.

    Article  MATH  MathSciNet  Google Scholar 

  6. 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.

    Article  MATH  MathSciNet  Google Scholar 

  7. S.-H.S. Huang and C.K. Wong. Optimal Binary Split Trees. Journal of Algorithms, Vol. 5, pp. 69–79, 1984.

    Article  MATH  MathSciNet  Google Scholar 

  8. D.A. Huffman. A Method for the Construction of Minimum Redundancy Codes. Proc. Institute of Radio Engineers, Vol. 40, pp. 1098–1101, 1952.

    Google Scholar 

  9. D.E. Knuth. The Art of Computer Programming: Volume 3, Second Edition, Sorting and Searching. Addison-Wesley, Reading, Massachusetts, 1998.

    Google Scholar 

  10. 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.

    Article  MATH  MathSciNet  Google Scholar 

  11. Y. Perl. Optimum Split Trees. Journal of Algorithms, Vol. 5, pp. 367–374, 1984.

    Article  MATH  MathSciNet  Google Scholar 

  12. B.A. Sheil. Median Split Trees: A Fast Lookup Technique for Frequently Occurring Keys. Communications of the ACM, Vol. 21, pp. 947–958, 1978.

    Article  MATH  MathSciNet  Google Scholar 

  13. D. Spuler. Optimal Search Trees Using Two-Way Key Comparisons. Acta Informatica, Vol. 32, pp. 729–740, 1994.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics