Closed Hashing

Linear Probing

Impact of Load Factor on Cost

Dashed lines are linear probing, solid lines are “random” probing.

Load factor is on the x-axis, expected number of buckets accessed on the y-axis.

(From OpenDSA Data Structures and Algorithms book)

Solution #1: Quadratic Probing

Solution #2: Double Hashing