3. Let the hashing function be h(K)≡K(modm), with 0⩽h(K)<m, and let the probing sequence for collision resolution be hj(K)≡h(K)+jq(modm), 0⩽hj(K)<m, for j=1,2,…,m−1. Show that all memory locations are probed a) if m is prime and 1⩽q⩽m−1. b) if m=2r and q is odd.
This one wants a proof. Work it on paper, then read the official solution and mark
yourself. Be honest about it: the record is only any use to you if it is.
Official solution
None
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.