Data structures · Searching and hashing

Hash functions

Binary search needs about twenty looks for a million items. A hash table works out where a key belongs, so it needs about one.