Skip to main content
Log in

A method for constructing binary search trees by making insertions at the root

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

Abstract

It is possible to construct a binary search tree by inserting items at the root instead of adding them as leaves. When used for sorting, the method has several desirable properties, including (a) fewer comparisons in the best case, (b) fewer comparisons in the worst case, (c) a reduced variance, and (d) good performance when the items are already nearly sorted or nearly reverse sorted. For applications in which the tree is searched for existing items as well as having new items added to it (e.g., in the construction of a symbol table), the tree can be made to exhibit stacklike behavior, so that the fewest comparisons are required to locate the most recently used items.

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. W. H. Burge, “An Analysis of a Tree Sorting Method and Some Properties of a Set of Trees,”Proceedings of the First USA-Japan Computer Conference (1972), pp. 372–379.

  2. W. H. Burge, “A Correspondence Between Two Sorting Methods,” IBM Research Report, RC 6397 (1977).

  3. Clark A. Crane, “Linear Lists and Priority Queues as Balanced Binary Trees,” Ph.D. Thesis, Stanford University, Computer Science Department Report, STAN-CS-72-259 (1972).

  4. Fred G. Gustavson and Werner Liniger. “A fast random number generator with good statistical properties,”Computing 6:221–226 (1970).

    Google Scholar 

  5. T. N. Hibbard, “Some combinatorial properties of certain trees with applications to searching and sorting,”JACM 9(1):13–28 (1962).

    Google Scholar 

  6. D. E. Knuth,The Art of Computer Programming, Vol. 3,Sorting and Searching (Addison- Wesley, Reading, Massachusetts, 1973).

    Google Scholar 

  7. P. A. W. Lewis, A. S. Goodman, and J. M. Miller, “A pseudo-random number generator for the System/360,”IBM Syst. J. 8:136–146 (1969).

    Google Scholar 

  8. P F. Windley, “Trees, forests and rearranging,”Comput. J. 3(2):84–88 (1960).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Stephenson, C.J. A method for constructing binary search trees by making insertions at the root. International Journal of Computer and Information Sciences 9, 15–29 (1980). https://doi.org/10.1007/BF00995807

Download citation

  • Received:

  • Revised:

  • Issue Date:

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

Key words

Navigation