Previous Lecture Lecture 6 Next Lecture

Lecture 6, Mon 01/27

Hashing

Hashing

Hash Table

Collisions

Open-address Hashing

Open Address

Double Hashing

Double Hashing

Chained Hashing

Chaining

std::map vs std::unordered_map

unordered_map map
Average Worst-Case Average Worst-Case
Lookup O(1) O(n) O(log n) O(log n)
Deletion O(1) O(n) O(log n) O(log n)