• Courses
  • Tutorials
  • DSA
  • Data Science
  • Web Tech
August 22, 2024 |15.1K Views

AVL Tree - Deletion

  Share   Like
Description
Discussion

We have discussed AVL insertion in the previous post. In this post, we will follow a similar approach for deletion.

Steps to follow for deletion. 
To make sure that the given tree remains AVL after every deletion, we must augment the standard BST delete operation to perform some re-balancing. Following are two basic operations that can be performed to re-balance a BST without violating the BST property (keys(left) < key(root) < keys(right)). 
1) Left Rotation 
2) Right Rotation

AVL Tree - Deletion : https://www.geeksforgeeks.org/avl-tree-set-2-deletion/