Information with a “name” or something equivalent. There are many other instances in which you want to associate Number or a warning that no phone number is available for that name. Name in a phone book, you should either get the corresponding phone Wide range of data types designed to collect data.Ĭonsider, for example, the problem of representing a simple phone book.Ī phone book associates phone numbers with names. Kinds of operations, the design of structured types like lists and trees Since different structures might support different Sequentially, and XML trees, which are useful for processing We’ve collected values in lists, which are useful for processing Tables, which provide one implementation of dictionaries.Īs you’ve seen, we often find it useful to collect data into structures. Dictionaries, maps, and hash tables Due Wednesday, 27 February 2019 Summary We consider the dictionary data type, which provides a way toĪssociate information with words.
0 Comments
Leave a Reply. |