COMPARATIVE EXPERIMENTAL ANALYSIS OF METHODS FOR IMPLEMENTING THE AVL TREE

Автор(и)

  • Anatolii Shostak

DOI:

https://doi.org/10.26906/SUNZ.2026.1.131

Ключові слова:

computational model, AVL tree, binary search, asymptotic analysis

Анотація

The paper presents an experimental proof of the difference between two computational models of AVL trees: the classical online balanced AVL tree and the canonical median tree constructed on the basis of a sorted array of keys. Despite close asymptotic estimates of the complexity of search, insertion, and deletion operations, these implementations of AVL trees demonstrate fundamentally different behavior in practice. The study analyzes the impact of balancing strategy, tree shape, and search operation implementation method on the performance of search, key insertion, and deletion operations, as well as AVL tree creation. It is shown that using binary search on a sorted array of keys in a canonical AVL tree significantly improves the search time, but leads to linear complexity of insertion and deletion operations. The results confirm that the considered implementations are optimal for different load classes and are not interchangeable. The main contribution of this work is the experimental proof that canonical AVL trees and online AVL trees are fundamentally different computational models rather than competing implementations.

Завантажити

Дані для завантаження поки недоступні.

Посилання

1. Adelson-Velskii M., Landis E.M., An algorithm for the organization of information. Proceedings of the USSR Academy of Sciences, 1962. 146. – pp.263–266. URL: https://zhjwpku.com/assets/pdf/AED2-10-avl-paper.pdf

2. Cormen Тhоmаs H., Leiserson Charles Е., Rivest Ronald L., Clifford Stein. Introduction to algorithms. – MIT Press, 2022. – 1312 pp. URL: https://www.cs.mcgill.ca/~akroit/math/compsci/Cormen%20Introduction%20to%20Algorithms.pdf

3. Chauhan S., Thakur S., Rana S., Sharma S. A brief study of balancing of AVL tree. International Journal of Research (IJR). Vol. 1, Issue 11, 2014, pp. 406-408, URL: https://scispace.com/pdf/a-brief-study-of-balancing-of-avl-tree-53a0i1etow.pdf

4. Sedgewick R., Wayne K., Algorithms: / Sedgewick R. Princeton University, Addison-Wesley, 2011. 955 pp. URL: https://algs4.cs.princeton.edu/home/

5. Wiener R. AVL Trees //Generic Data Structures and Algorithms in Go: An Applied Approach Using Concurrency, Genericity and Heuristics. Berkeley, CA : Apress, 2022. С. 315-347, https://doi.org/10.1007/978-1-4842-8191-8_10

6. Bounif L., Zegour D. E. Toward a unique representation for AVL and red-black trees. Computación y Sistemas, Vol. 23, No. 2, 2019, pp. 435–450, doi: https://doi.org/10.13053/CyS-23-2-2840

Опубліковано

2026-02-13

Номер

Розділ

Інформаційні технології