Back to Search
Start Over
Sets and Maps
- Source :
- Undergraduate Topics in Computer Science ISBN: 9783319130712
- Publication Year :
- 2015
- Publisher :
- Springer International Publishing, 2015.
-
Abstract
- In the last chapter we studied sequences which are used to keep track of lists of things where duplicate values are allowed. For instance, there can be two sixes in a sequence or list of integers. In this chapter we look at sets where duplicate values are not allowed. After examining sets we’ll move on to talk about maps. Maps may also be called dictionaries or hash tables.The term hash table actually suggests an implementation of a set or map. The primary focus of this chapter is in understanding hashing. Hashing is a very important concept in Computer Science because it is a very efficient method of searching for a value. To begin the chapter we’ll motivate our interest in hashing, then we’ll develop a hashing algorithm for finding values in a set. We’ll also apply hashing to the building of sets and maps. Then we’ll look at an important technique that uses hashing called memoization and we’ll apply that technique to a couple of problems.
Details
- ISBN :
- 978-3-319-13071-2
- ISBNs :
- 9783319130712
- Database :
- OpenAIRE
- Journal :
- Undergraduate Topics in Computer Science ISBN: 9783319130712
- Accession number :
- edsair.doi...........64734fdc6c9f3835a3f28c9818745349
- Full Text :
- https://doi.org/10.1007/978-3-319-13072-9_5