On the course web-pages, I promised a take-home midterm test. This is it. Please work alone on this. You may use your text book, code I have provided in my pub directory, and Sun Java documentation reachable from the course web-site without reference. All other sources should be referenced. Please remember NO HELP FROM PEOPLE. This is a test.
Your code should be well-documented. In a prose README file, give me an overview of how your code works and estimated run-time of the various phases of the spell-check of a file under reasonable assumptions, like not too many misspelled words, etc. Tell me what your assumptions are. Give plausible arguments to support your estimates.
Hints:
This problem is very close to programming project 12.17 on page
449 in Weiss. There he says some parts are close to generating
a cross-reference. In case it will help, I have put slightly
modified code from Weiss for the cross-reference in
/home/cfk/pub/cs35/week8/takehome. Weiss's Tokenizer is much
more complicated than what you need for this problem. We do not
want case to count in our spell-checker. Something close to
the kind of code in /home/cfk/pub/cs35/week6/wordfreq/Readwords.java
should suffice for reading the files. Parts of the program
Readwords.java in /home/cfk/pub/cs35/week8/takehome/ may be helpful.
Happy computing.