Home
>>    




Applications of Dictionaries

CS 300, Parallel and Distributed Computing (PDC)

  1. [HC] Create a dictionary of animals. Each animal should have a list... For example... Complete your program by printing a catalog of all the elements of your animals with labelled descriptive information about each animal from that animal's list.

  2. [HC] Representing the features of a animal using a list as in Exercise 1 requires a programmer to remember which list element corresponds to which animal feature, which means extra mental work for a programmer. For a better solution, modify your dictionary of animals and the program for printing a catalog of those animals, by replacing each animal's list by a (nested) dictionary of features for that animal. For example...

  3. [HC] Create a five-word dictionary for a human language of your choice. The entry for each word should have multiple relevant properties. For example, in French, each word should have pronunciation, a definition for that word (this may be in English), a gender, the part of speech (noun, verb, conjunction, etc.), and optionally extra information for irregular words (for example, the plural of _____ is _____, which is an exception to the usual rules for forming plurals). Use nested dictionaries to represent the properties of your words... Write a program...

  4. [HC] Survey...

  5. [HC] Word count...

  6. [HC] ngrams...