Reputation: 45
Now, I am learning AVL tree data structure from a book and here's one example which I have a difficulty to understand:
Can anyone explain the process of rotation here?
Upvotes: 0
Views: 2009
Reputation: 8571
I am not sure about your example but I think it is wrong AVL tree is height balanced binary search tree (which is not in your example, AUG should be inserted on right hand side of MAY not left) anyways in AVL tree LR rotation with an example could be like this,
for good animation you can see ,
Upvotes: 1