Skip to main content
Log in

Binary search trees with binary comparison cost

  • Published:
International Journal of Computer & Information Sciences Aims and scope Submit manuscript

Abstract

We introduce a new variant of the cost measure usually associated with binary search trees. This cost measure BCOST, results from the observation that during a search, a decision to branch left need require only one binary comparison, whereas branching right or not branching at all requires two binary comparisons. This is in contrast with the standard cost measure TCOST, which assumes an equal number of comparisons is required for each of the three possible actions. With BCOST in mind we re-examine its effect with respect to minimal and maximal BCOST trees, minimal and maximal BCOST-height trees, and introduce a class of BCOST-height balanced trees, which have a logarithmically maintainable stratified subclass. Finally, a number of other issues are briefly touched upon.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. A. V. Aho, J. E. Hopcroft, and J. D. Ullman,Data Structures and Algorithms, Addison-Wesley Publishing Co., Reading, Massachusetts (1974).

    Google Scholar 

  2. C. C. Gotlieb and L. R. Gotlieb,Data Types and Structures Prentice-Hall, Inc., Englewood Cliffs, New Jersey (1977).

    Google Scholar 

  3. E. Horowitz and S. Sahni,Fundamentals of Data Structures, Computer Science Press, Inc., Rockwille, Maryland (1976).

    Google Scholar 

  4. D. E. Knuth,The Art of Computer Programming, Volume III: Sorting and Searching, Addison-Wesley Publishing Co., Reading, Massachusetts (1973).

    Google Scholar 

  5. T. A. Standish,Data Structure Techniques, Addison-Wesley Publishing Co., Reading, Massachusetts (1980).

    Google Scholar 

  6. N. Wirth,Algorithms and Data Structures = Programs, Prentice-Hall, Inc., Englewood Cliffs, New Jersey (1976).

    Google Scholar 

  7. A. V. Aho, J. E. Hopcroft, and J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley Publishing Co., Reading, Massachusetts (1974).

    Google Scholar 

  8. D. M. Choy and C. K. Wong, Bounds for Optimal α-β Binary Trees, BIT 17:1–15 (1977).

    Google Scholar 

  9. J. van Leeuwen and M. Overmars Stratified Balanced Search Trees,Acta Informatica 18:345–359 (1982).

    Google Scholar 

  10. Th. Ottmann, M. Schrapp, and D. Wood, On 1-Pass Top-Down Update Algorithms for Classes of Stratified Balanced Search Trees, Research Report CS-83-11, Computer Science Department, University of Waterloo, Waterloo, Ontario N2L 3G1, Canada.

  11. A. L. Rosenberg and L. Snyder, Minimal Comparison 2, 3 Trees,SJAM Journal on Computing 7:465–480 (1978).

    Google Scholar 

  12. Th. Ottmann, A. L. Rosenberg, H. W. Six, and D. Wood, A Realistic Cost Measure for Binary Search Trees,Proceedings of the 7th Conference on Graph Theoretic Concepts in Computer Science (WG81), (ed. J. R. Mühlbacher), Carl Hanser Verlag, Vienna, pp. 163–172 (1982).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

This work was partially supported by NATO Grant GR 155.81, Natural Sciences and Engineering Research Council of Canada Grant No. A-5692, and National Science Foundation Grant No. MCS-8116522.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Ottmann, T., Rosenberg, A.L., Six, HW. et al. Binary search trees with binary comparison cost. International Journal of Computer and Information Sciences 13, 77–101 (1984). https://doi.org/10.1007/BF00978710

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF00978710

Key words

Navigation