COL 106 Assignment 5
|
class Key implements Comparable<Key> { // fill body } interface BST <T> { Position add(T data, Key key); Position remove(T data, Key key); T[] remove(Key key); }
ALLOC 100 ALLOC 1000 ALLOC 10000 FREE 1101 100 FREE 1201 1000 FREE 1 100 ALLOC 50
VISIT BLACK 1 ∞ ALLOC 1 VISIT BLACK 101 ∞ ALLOC 101 VISIT BLACK 1101 ∞ ALLOC 1101 VISIT BLACK 1101 1100 VISIT RED 1 100 ALLOC 1 FINAL 51 50 1101 1100 11101 ∞
Please ensure that you follow the following set of instructions meticulously while submitting the assignment on Moodle. Also, please note that in case of deviation from this procedure will render your submission faulty, and your assignment might not be evaluated at all by the script. Please follow these steps:
your-entry-number_assignment5.zipExample: If your entry number is 2012CSZ8019, the zip file should be named 2012CSZ8019_assignment5.zip. It should expand to a directory called src, which contains all your .java files. Please make sure that you follow exactly this naming format.
base64 entrynumber_assignment5.zip > entrynumber_assignment5.zip.b64This will create a file with the same name with a b64 extension appended at the end.
java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)