Suppose you have a hash table of size N = 64, and you are using pseudo-random probing. The keys in your hash are 4-digit integers (0000 through 9999) and your hash function is h(k) = (the sum of the digits in k). Assume that the first 4 slots of your pseudo-random probing array contain: 5, 10, 60, 30 What are the first 4 values in the probe sequence (starting with the home position) for a record with key k=1948?
Suppose you have a hash table of size N = 64, and you are using pseudo-random probing. The keys in your hash are 4-digit integers (0000 through 9999) and your hash function is h(k) = (the sum of the digits in k). Assume that the first 4 slots of your pseudo-random probing array contain: 5, 10, 60, 30 What are the first 4 values in the probe sequence (starting with the home position) for a record with key k=1948?
Related questions
Question

Transcribed Image Text:Suppose you have a hash table of size N = 64, and you are using pseudo-random probing. The
keys in your hash are 4-digit integers (0000 through 9999) and your hash function is h(k) = (the
sum of the digits in k).
Assume that the first 4 slots of your pseudo-random probing array contain: 5, 10, 60, 30
What are the first 4 values in the probe sequence (starting with the home position) for a record
with key k=1948?
AI-Generated Solution
Unlock instant AI solutions
Tap the button
to generate a solution