Chapter 5. Hashing and Maps
Chapter 5. Hashing and Maps This chapter studies hashing as a practical mechanism for constant time access under realistic constraints. The focus is not on idealized O(1) claims, but on how hash tables behave under load, how collisions are handled, and how design choices affect predictability, memory locality, and adversarial robustness. A hash table implements a partial function from keys to values by mapping keys into a finite index space....