Binary Search Tree Viewer
Note: For a more recent version of this program (requiring Java
v. 1.2), click here.
Below is an applet for creating and manipulating Binary Search Trees
and AVL Trees. Select one of the choices from the
choice box, and press the Start button. This will open a window in
which the tree can be created.
To create and manipualte a tree, enter any string in the text field in
the lower left-hand corner, and press either the Put button to add
that string as a key to the tree, or the Remove button to remove that
key from the tree. The keys will be maintained in lexicographic
order. The Back and Forward buttons allow you to move through the
history of your tree construction. The Clone button opens a new
window with an exact copy of the tree and history in your current
window; the tree in this window can then be manipulated independently.
Disclaimers and known bugs
Send bug reports to
howell@cis.ksu.edu, but please
don't tell me it puts the keys in the wrong order. It treats keys as
strings and orders them lexicographically; e.g., "5" > "10".