For a hash table of size using linear probing, what is the formula for the -th probe index for a key , given the base hash function ?
C
Step-by-Step Solution
Key idea: This is a direct recall question about the linear probing formula.
Step 1: Recall that linear probing resolves collisions by checking the next sequential slot.
Step 2: The formula for the -th probe is the base hash plus the probe number , all modulo the table size .
Step 3: This matches .
Answer: C