Data Structures and Algorithms with Object-Oriented Design Patterns in Python
next up previous index

Removing Items from an AVL Tree

The method for removing items from an AVL tree is inherited from the BinarySearchTree class in the same way as AVL insertion. (See Program gif). All the differences are encapsulated in the detachKey and balance methods. The balance method is discussed above. The detachKey method is defined in Program gif

   program20377
Program: AVLTree class detachKey method.


next up previous index

Bruno Copyright © 2003, 2004 by Bruno R. Preiss, P.Eng. All rights reserved.