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.
Similar content being viewed by others
References
A. V. Aho, J. E. Hopcroft, and J. D. Ullman,Data Structures and Algorithms, Addison-Wesley Publishing Co., Reading, Massachusetts (1974).
C. C. Gotlieb and L. R. Gotlieb,Data Types and Structures Prentice-Hall, Inc., Englewood Cliffs, New Jersey (1977).
E. Horowitz and S. Sahni,Fundamentals of Data Structures, Computer Science Press, Inc., Rockwille, Maryland (1976).
D. E. Knuth,The Art of Computer Programming, Volume III: Sorting and Searching, Addison-Wesley Publishing Co., Reading, Massachusetts (1973).
T. A. Standish,Data Structure Techniques, Addison-Wesley Publishing Co., Reading, Massachusetts (1980).
N. Wirth,Algorithms and Data Structures = Programs, Prentice-Hall, Inc., Englewood Cliffs, New Jersey (1976).
A. V. Aho, J. E. Hopcroft, and J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley Publishing Co., Reading, Massachusetts (1974).
D. M. Choy and C. K. Wong, Bounds for Optimal α-β Binary Trees, BIT 17:1–15 (1977).
J. van Leeuwen and M. Overmars Stratified Balanced Search Trees,Acta Informatica 18:345–359 (1982).
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.
A. L. Rosenberg and L. Snyder, Minimal Comparison 2, 3 Trees,SJAM Journal on Computing 7:465–480 (1978).
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).
Author information
Authors and Affiliations
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
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
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF00978710