Summary
double_hashing is a
collision_resolution method for an
open_addressing hash_table. It uses a
primary_hash h1(key) and a
secondary_hash h2(key). Probes follow a
probe_sequence: index = (h1 + i*h2) %
table_size. Require h2(key) != 0 and relatively prime to the
table_size; a
prime_modulus helps. It reduces
primary_clustering versus linear probing. Control
load_factor to keep performance. Searches and inserts follow the same sequence. Deletions mark a
tombstone_marker, not empty. Stop on empty slot or found key.