Math · Intermediate · Lesson 7 of 7
Hash Tables
Finding things in one step
An interactive lesson with 6 steps, about 5 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.
What you’ll learn
- A hash function jumps straight to a slot; collisions are resolved by probing.
- Average cost depends on the load factor α, not the number of items.
- Tables are resized when α gets too high (around 2/3).
Steps
- Jump straight to the answer
- Two keys collide
- How full is too full?
- Why so fast?
- A half-full table
- Keeping it fast