# AVL Tree In Data Structure? What is the AVL tree example?

AVL stands for Adelson – Vel’skii and Landis, These two were the Russian mathematician having the full names G.M. Adelson Vel’skii and E.M. Landis. They both described the property in 1962 about the height balance tree Which was honored as AVL TREE.|AVL Tree In Data Structure|

As per their theory or property, a height balance tree is a binary tree in which the difference in heights between the left and right subtree is not more than one for every node. And as an honor to these mathematicians, this resulting binary tree is also known as the AVL tree.|AVL Tree In Data Structure|

In order to maintain the height-balanced property in AVL Tree, it is not necessary to know the height of each subtree. We can get by maintaining at each node a balance factor that indicates the difference in heights of the left and right sub-trees.|AVL Tree In Data Structure|

Each node is a balanced binary tree that has a balance of 1, -1, or 0 depending on whether the height of its left subtree is greater than, less than, or equal to the height of its right subtree.

A value of 1 indicates that the left child is heavier and there is a path from the root to the leaf in the left child subtree of length n, whereas the longest path in the right child subtree is length n-1.

A balancing factor of 0 will indicate that the longest paths in the two-child subtree are equal. A balancing factor of -1 indicates that the right child possesses the longest path.

Fig1 shows a balanced binary tree with a balance factor of each node or an AVL TREE. In a balanced tree, each node must be in one of the three states -1, 0, or 1. If there exists a node in a tree where this is not true, then such a tree is said to be unbalanced. Fig2 shows an unbalanced binary tree.

What is the AVL tree’s full form?

The full form of the AVL tree is  Adelson-Velsky and Landis.

What is the height of the AVL tree?

If we consider the n node in the AVL tree then the minimum height of the AVL tree is floor(long), and the maximum height of the AVL tree is 1.44*logn.

You can also go through a few more amazing blog links below related to Data Structure:

## Conclusion:

Inside this blog post(AVL Tree In Data Structure), we have seen What is the AVL tree example? Why the AVL tree is used? We have learned that the AVL tree is a self-balancing binary search tree.

In the case of any queries, you can write to us at a5theorys@gmail.com we will get back to you ASAP.

Hope! you would have enjoyed this post about AVL Tree In Data Structure.

Please feel free to give your important feedback in the comment section below.

Have a great time! Sayonara!

#### Anurag

I am a blogger by passion, a software engineer by profession, a singer by consideration and rest of things that I do is for my destination.