Homework 1


Due : 11am, 8 July

Question 1.9 from the course text.

If you have already spoken to me about not being in town, then send your homework via email to hussein@vt.edu before 11am on 8 July (There are only 2 of you - any other files I receive will be ignored). All others must print out and submit the homework at the beginning of class.

Questions and Answers

Solution

Primitive operations :
  1. Build-dictionary (taking a maximum of, say, 10 seconds) - creates a representation of the dictionary in main memory.
  2. Find-word-in-dictionary - checks if a particular word is in the dictionary.
    Suppose the maximum reasonable time to search 20 pages is 20 seconds. This means that each page must take at most 1 second. Assuming 66 lines per page and 14 words per line, this implies a time constraint of approximately 0.001 second per search operation.

Last updated : 8 July 1999 10:24pm