Define AVL Tree.
4 years ago
Data Structure and Algorithm
An empty tree is height balanced. If T is a non-empty binary tree with TL and TR as its left and right subtrees, then T is height balanced if
- TL and TR are height balanced and
- │hL - hR│≤ 1
Where hL and hR are the heights of TL and TR respectively.
Sanisha Maharjan
Jan 23, 2022