Lecture 27

Learning objectives

After this class, you should be able to:

  1. Derive the worst case and expected case time complexities for insertion into a hash table.
  2. Given a hash function, initial hash table size, a collision resolution strategy, and a sequence of insertions and searches, show the state of the hash table after the sequence of operations, rehashing when necessary.

Reading assignment

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

Exercises and review questions


Last modified: 4 Nov 2011