StudyGraph
Computer Science 5 things

4 Things a Good Hash Function Must Do

4 things about hash functions every CS student must know…

Lesson notes

Key points

Takeaway: Good hashes are deterministic, uniform and fast.

Quick check: Why must a hash function return the same value for the same key?
  1. To save memory
  2. So lookups find the key
  3. To avoid rehashing

Lookup recomputes the hash; a different value points to the wrong bucket.

Lessons like this, for your syllabus.

Short narrated study videos written for your course, level and exam. Free to start.

Get lessons for your own syllabus