Skip to content

Hash tables

Handout

Hash tables: fast lookup

  • A hash table stores items so you can find them very fast — usually in one step.
  • It is a list of slots. A hash function turns a key into a slot number.
  • Instead of searching every item, you jump straight to the slot the key belongs in.

Handout

Log in or create account

IGCSE & A-Level