CS285 -- Lab 5: Spell Checker

Winter 2004
Objectives Addressed
Procedure

An abstract base class, Dictionary and a driver program have been provided for you. Use inheritance to create derived classes based on the criteria given below.

Set version

This implementation should make use of a set to store the words from the dictionary file.

Roll Your Own Vector

This implementation should make use of a cs285::vector to store the words from the dictionary file. Your search algorithm should make no assumptions about the order in which the words are stored in the dictionary.

Sorted Roll Your Own Vector

This implementation should make use of a cs285::vector to store the words from the dictionary file. You should assume that the words are in order and implement a binary search algorithm for finding words in the dictionary.

Hash Table

This implementation should make use of a cs285::HashTable to store the words from the dictionary file. You will need to implement the cs285::HashTable (you may make use of the code given in the course handout).

The main function will need to be modified to handle all four of your implementations. A sample dictionary file is available here.

Interim Activity Logs (due 11:00pm, the day prior to week 8 and 9 labs)

You should submit an activity log to indicate your activity and progress on this assignment during the first two weeks of the assignment. Please submit one log per team.

Lab report (due 11:00pm, the day prior to week 10 lab)

Here is a template file to use as a starting point for this report.

Your report should include:

As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the XML help video and/or sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost.

If you have any questions, consult your instructor.

Acknowledgment

This assignment was originally developed by Dr. Chris Taylor.

Last Updated: Friday, 02-Jan-2015 09:08:24 CST