CS285 -- Lab 4: WordSearch



->Courses
->CS285
-->Homework
-->Quiz 1
-->Lab 1
-->Lab 2
-->Lab 3
->Lab 4
-->Lab 5
-->Lab 6
->Electronic Submission
->MSVC Info
->STL Help
->Book Errata
->Tentative Schedule
->Course Policies

[Courses]
[Rich][Home][Rich]
[Author]

Fall Quarter 2000

Overview

In this lab, you will write a program to find all the words in a dictionary that can be spelled by combining adjacent letters in a grid of letters.

Procedures

You are required to design, implement, and test a program that will will read in a file consisting of a grid of letters and write a file containing all possible combinations of adjacent letters that spell words in a dictionary. Words with fewer than three characters should not be considered. Two example files are cs285L4a.txt and cs285L4b.txt. Your program should store all of the words from the dictionary in an STL set.

In addition, your program should produce an output file that contains all of the words found in grid of letters. Although it is not required, you may wish to create a graphical user interface for your program. You may even wish to create an interface to simulate a popular board game and generate your own random grids. Extra credit will be awarded to the team that produces the best wordsearch game by the beginning of the week 10 lab. The best game will be determined by a class vote during the week 10 lab.

The green text in the following grid demonstrates legal letter combinations for LOOT, APE, and ROPE, but the letters that formed ROPE may not be used to form PORE since R and E are not adjacent to one another.

ULEA ULEA
AOAP AOAP
FROP FROP
HVKT HVKT

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

Your report should include:

  • Your design documentation.
  • The Documented source code for your program.
    You may find it useful to use the code.bat and dump.bat batch files to produce one file containing all of your source code with the markup commands required by my electronic submission process.
  • Sample program output.
  • A brief description of any problems you encountered or questions you have regarding the lab.
  • A discussion of what each team member accomplished.
  • A summary of your activity log indicating how much time you spent on the assignment. In addition to the total time spent on the project, please report the time in the following categories:
    • Design
    • Coding
    • Debug (before you think it's working)
    • Test (after you think it's working)
    • Documentation
    • Other
  • Any suggestions you have for how the lab could be improved.

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 sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost. It may be wise to keep a diskette backup as well.

Your grade will depend on quality of design, clarity of code and documentation, as well as whether your program produces the correct results. Note: This lab is worth double points. If you have any questions, consult your instructor.

Office: CC-27C, Phone: 277-7339
Last Updated: September 3, 2000
© 2000 Dr. Christopher C. Taylor