International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 7 - Number 14 |
Year of Publication: 2010 |
Authors: Rajeev R. Kumar Tripathi |
10.5120/1331-1695 |
Rajeev R. Kumar Tripathi . Article:Balancing of AVL tree using virtual node. International Journal of Computer Applications. 7, 14 ( October 2010), 12-15. DOI=10.5120/1331-1695
AVL tree is the first dynamic tree in data structure which minimizes its height during insertion and deletion operations. This is because searching time is directly proportional to the height of binary search tree (BST) [1-9].When insertion operation is performed it may result into increasing the height of the tree and when deletion is performed it may result into decreasing the height. To make the BST a height balance tree (AVL tree) creators of the AVL tree proposed various rotations. This paper proposes the balancing of the AVL tree using the concept of virtual node. This virtual node is a hypothetical node which is inserted into the inorder traversal of the BST and by doing the inorder traversal (left, root, right) we make a BST. Ultimately this virtual node is deleted to get an AVL tree.