Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Comparative performance evaluation of the AVL and red-black trees
Štrbac-Savić S., Tomašević M.  BCI 2012 (Proceedings of the 5th Balkan Conference in Informatics, Novi Sad, Serbia, Sep 16-20, 2012)14-19.2012.Type:Proceedings
Date Reviewed: Nov 12 2012

Balancing binary trees provides efficient searching with overall O(log n) performance for retrieval and maintenance operations. The first data structure of this kind was proposed by Adelson-Velskii and Landis 50 years ago, and is now known as the AVL tree. Since then, balanced binary trees have been suggested based on growth-by-splitting, as in dynamic files for B-trees and extendible hashing. Popular red-black (RB) trees actually implement two-element B-trees, while binary labeling of the tree nodes is just for convenience.

Both types of trees, AVL and RB, show similar O(log n) behavior. According to this paper, the general performance for both is basically the same. Differences depend on the statistical variations in the distribution of keys and the mixture of operations. The distinction lies in programming complexity. For example, a lecture on the AVL details takes about an hour, while explaining the RB takes less than ten minutes.

Reviewer:  Simon Berkovich Review #: CR140665 (1302-0118)
Bookmark and Share
 
Trees (E.1 ... )
 
 
Sorting And Searching (F.2.2 ... )
 
Would you recommend this review?
yes
no
Other reviews under "Trees": Date
The hB-tree: a multiattribute indexing method with good guaranteed performance
Lomet D., Salzberg B. ACM Transactions on Database Systems 15(3): 625-658, 1990. Type: Article
Jun 1 1991
Multidimensional trees
Baldwin W., Strawn G. Theoretical Computer Science 84(2): 293-311, 1991. Type: Article
Oct 1 1992
Hash trees versus b-trees
Bell D., Deen S. The Computer Journal 27(3): 218-224, 1984. Type: Article
Feb 1 1985
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy