What Is Avl Tree
What Is Avl Tree
Following are the Difference between Binary Search Tree and AVL Tree
Every Binary Search tree is not an Every AVL tree is a Binary Search
2.
AVL tree. tree.
The height or depth of the tree is The height or depth of the tree is
4.
O(n). O(logn)
First, every node moves one position to the left, then one position to the right
from the current position.
Right-Left Rotation (RL Rotation)
Right-left rotations are a combination of a single right rotation followed by a
single left rotation.
First, every node moves one position to the right then, then one position to the
left from the current position.