Skip to content

Session 1 - Hash Tables

hackers-1

Icebreaker question

If you could magically change one annoying thing about coding forever, what would it be?

Icebreaker results

Learning objectives

In this session of class we will learn about hash tables, an efficient data structure for mapping key/value pairs. By the end of this session you will be more familiar with the following topics:

  • Hash tables: A practical & efficient data structure for storing key/value pairs
  • Hash functions for mapping keys to integer values
  • Useful hash function properties: Determinism, efficiency, & uniformity of hashes
  • Collision-handling schemes: Separate chaining & Linear probing
  • Load factor & hash table resizing

In class exercises

Binder

Assignments