Previous Lecture Lecture 6 Next Lecture

Lecture 6, Thu 04/18

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)