This project involves the following files. (Get most of them here.)
BST.java
[*]
BinarySearchTree.java
that implements this interface.
(BinarySearchTree.java)
BST.java
. You will probably need to write a few more private helper methods that are not specified in BST.java
.
TreeNode.java
[*]
BSTException.java
[?]
DictionaryEntry.java
[ ]
compareTo
and the toString
methods.
TestBST.java
[?]
BSTApplet.java
and bst.html
[?]
[*] = Do not change this file.
[?] = You may change this file if you want to, but you don't need to.
[ ] = You need to edit this file.
(No mark.) = You need to create this file.
The a5files.zip contains all the .java files and this page, for easy downloading.
You can also check out the the documentation pages for these files.
You need to write/change:
DictionaryEntry.java
-- write the compareTo
and toString
methods.
BinarySearchTree.java
-- write this file, which implements BST.java. You will use TreeNode.java to implement the tree, and you will throw BSTExceptions from here. The applet will use this class and DictionaryEntry.
Is something here unclear? Email me or Blanca..
~ztomasze Index :
TA Details: ICS211:
Assignment 5: Help http://www2.hawaii.edu/~ztomasze |
Last Edited: 21 Nov 2003 ©2002 by Z. Tomaszewski. |