Lecture 26

Learning objectives

After this class, you should be able to:

  1. Given a hash function, a collision resolution strategy, the hash table size, and a sequence of insertions, draw the state of the hash table without chaining after the insertions are complete.
  2. Explain how collisions are resolved in open-addressed hashing, and define linear probing.
  3. Given a hash function, the hash table size, a collision resolution strategy, and a sequence of insertions and searches, give the number of collisions in each insert and search operation.
  4. Identify applications where hash tables can be useful.

Reading assignment

  1. Section 5.4.
  2. Lecture: Hash tables.

Exercises and review questions


Last modified: 2 Nov 2011