AVL tree is a self-balancing Binary Search Tree (BST)
For example,
On the left is an unbalanced binary search tree. And on the right is balanced AVL tree.
AVL trees increase speed when running algorithms by creating multiple branches instead of a single extending linear branch using rotation techniques. A search algorithm in the AVL tree would run with a time complexity O(log n) as compared to that in an unbalanced binary tree with a time complexity O(n).
AVL tree is a self-balancing Binary Search Tree (BST) For example, On the left is an unbalanced binary search tree. And on the right is balanced AVL tree.![buildBalancedBST](https://user-images.githubusercontent.com/66629629/147189968-c3877dff-4e25-42d8-89ce-22bfcc86847c.png)
AVL trees increase speed when running algorithms by creating multiple branches instead of a single extending linear branch using rotation techniques. A search algorithm in the AVL tree would run with a time complexity O(log n) as compared to that in an unbalanced binary tree with a time complexity O(n).