Image for AVL-Tree (data structure)

AVL-Tree (data structure)

An AVL tree is a type of self-balancing binary search tree used in computer science to store data efficiently. It maintains a balanced structure so that the difference in height between the left and right subtrees of any node (called the balance factor) is always at most one. This balance ensures quick search, insertion, and deletion operations, typically in logarithmic time, because the tree’s height remains minimized. If an insertion or deletion causes imbalance, the tree performs rotations to restore balance, maintaining optimal performance for data management tasks.