$ cd ~/cs35/labs $ git clone <link you got from github> ./lab07
$ cd ~/cs35/labs/lab07 $ ln -s /usr/local/doc/lab07-data/ ./test_data
Note the path /usr/local/doc/lab07-data/
is local only to the machines on the CS network and will not work if you clone your code to your personal computer.
For the written part, you will be asked to draw some trees in $\LaTeX$. We provided a tool to make this easier. Edit the tree files and run make
. If make
generates an error with your trees, adjust the spacing between nodes.
When removing an element from an AVL tree, use the remove method described in lab 06. Before returning any node from removeFromSubtree
run the balance
algorithm described in class.
The written part involving heaps will likely need to wait until next week.
In the first week, you should mostly focus on the Document class which uses a Dictionary. The PlagiarismDetector class uses a PriorityQueue. Since a PQ implementation is provided for you, you can start using this relatively soon, after discussing PQs in class.
main.cpp
uses command line arguments. Let's looks at a simple demo of how they work. You will expand on this for your lab.