0
2.6kviews
Short note on AVL Tree
2 Answers
written 5.6 years ago by | modified 5.6 years ago by |
Searching in a binary search tree is efficient if the heights of both left and right sub-trees of any node are equal.However, frequent insertions and deletions in a BST are likely to make it unbalanced.
The efficiency of searching is ideal if the difference between left and right sub-trees of …
written 2.5 years ago by | • modified 2.5 years ago |
AVL Tree
An AVL tree (Adelson-Velskii and Landis; tree, named after the inventors) is a self-balancing binary search tree. It was the first such data structure to be invented. In an AVL tree, the heights of the two-child subtrees of any node differ by at most one; if at any …