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.
Similar content being viewed by others
References
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.
W. H. Burge, “A Correspondence Between Two Sorting Methods,” IBM Research Report, RC 6397 (1977).
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).
Fred G. Gustavson and Werner Liniger. “A fast random number generator with good statistical properties,”Computing 6:221–226 (1970).
T. N. Hibbard, “Some combinatorial properties of certain trees with applications to searching and sorting,”JACM 9(1):13–28 (1962).
D. E. Knuth,The Art of Computer Programming, Vol. 3,Sorting and Searching (Addison- Wesley, Reading, Massachusetts, 1973).
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).
P F. Windley, “Trees, forests and rearranging,”Comput. J. 3(2):84–88 (1960).
Author information
Authors and Affiliations
Rights 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
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF00995807