Summary
We present an algorithm which optimizes a weighted binary tree after an insertion or deletion. The resulting tree is nearly optimal. The algorithm needs O(n) space. In the case of an insertion the expected number of operations is equal to or less than the height of the tree. All results presented in this paper can also be found in [15].
Similar content being viewed by others
References
Adelson-Velskii, G.M., Landis, E.M.: An Algorithm for the Organization of Information. Doklady Akademii Nauk USSR, Moscow, Vol. 16, No. 2, 1962, pp. 263–266; english translation in Soviet Mathematics, Vol. 3, 1259–1263 (1962)
Baer, J.-L.: Weight-balanced trees. Proc. AFIPS, Vol. 44, 467–472 (1975)
Bayer, P.J.: Improved Bounds on the Costs of Optimal and Balanced Binary Search Trees. M. Sc. thesis, MIT, 1975
Bayer, R.: Symmetric binary B-trees: data structure and maintenance algorithms. Acta Informat. 1, 290–306 (1972)
Foster, C.C.: Information storage and retrieval using AVL-trees. Proceedings of the 20th National ACM Conference at Cleveland, 1965, pp. 192–205
Fredman, M.L.: Two Applications of a Probabilistic Search Technique: Sorting X + Y and building Balanced Search Trees. Proceedings of Seventh Annual ACM Symposium on Theory of Computing, Albuquerque, New Mexico, May 1975, pp. 240–244
Knott, G.D.: A balanced tree structure and retrieval algorithm. Proceedings of Symposium on Information Storage and Retrieval, University of Maryland, 1971, pp. 175–196
Knuth, D.E.: Optimum Binary Search Trees. Acta Informat. 1, 14–25 (1971)
Knuth, D.E.: The Art of Computer Programming. Vol. 3. Reading-London: Addison-Wesley 1973
Maurer, H.A., Wood, D.: Zur Manipulation von Zahlenmengen. Angewandte Informatik 4, 143–149 (1976)
Mehlhorn, K.: Dynamic binary search. Proceedings of the Fourth Colloquium on Automata, Languages and Programming, University of Turku, July 18–22, 1977, pp. 323–336
Mehlhorn, K.: Nearly optimal binary search trees. Acta Informat. 5, 287–295 (1975)
Nievergelt, J., Reingold, E.M.: Binary search trees of bounded balance. Siam Journal on Computing 2, (1) 33–43 (1973)
Ottmann, Th., Six, H.-W.: Eine neue Klasse von ausgeglichenen Binärbäumen. Angewandte Informatik 8, 395–400 (1976)
Unterauer, K.: Optimierung gewichteter Binärbäume zur Organisation geordneter, dynamischer Dateien. Technische Universität München, Report No. 7730, August 1977
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Unterauer, K. Dynamic weighted binary search trees. Acta Informatica 11, 341–362 (1979). https://doi.org/10.1007/BF00289093
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF00289093