Slide 18
Slide 18 text
Hash table and slot index
Hash table with initial size of 8 slots.
Slot index = hash(key) & (table_size - 1)
Python hash function is very regular for ints and
strings:
map(hash, (0, 1, 2, 3)) = [0, 1, 2, 3]
key ‘0’ -> slot 0
key ‘1’ -> slot 1...