A program that checks spelling works in the following way :
A hash table has been defined in which each entry is a Boolean variable initialized to
.A hash function has been applied to each word in the dictionary, and the appropriate entry in the hash table has been set to
. To check the spelling in a document, the hash function is applied to every word in the document, and the appropriate entry in the hash table is examined. Which of the following is(are) correct?
I. true means the word was in the dictionary.
II. false means the word was not in the dictionary.
III. Hash table size should increase with document size.
(A) I only
(B) II only
(C) I and II only
(D) II and III only