Package aud

Class AVLTree<Key extends Comparable<Key>,Value>

java.lang.Object
aud.BinarySearchTree<Key,Value>
aud.AVLTree<Key,Value>
All Implemented Interfaces:
Graphvizable, GraphvizDecorable, Iterable<BinarySearchTree<Key,Value>.Cursor>

public class AVLTree<Key extends Comparable<Key>,Value> extends BinarySearchTree<Key,Value>
Simple implementation of an AVL tree.

This implementation is based on BinarySearchTree and in particular BinarySearchTree.restructure(aud.BinarySearchTree.Node) for rebalancing. This implementation does not implement removal of nodes! remove(Key) always throws UnsupportedOperationException!

See Also: