Searching Sorting and Hashing questions

Q16

GATE CS 2022 CSSearching Sorting and HashingMCQ1 mark−1/3 if wrong
Suppose we are given nn keys, mm hash table slots, and two simple uniform hash functions h1h_1 and h2h_2. Further suppose our hashing scheme uses h1h_1 for the odd keys and h2h_2 for the even keys. What is the expected number of keys in a slot?
Show answer without attempting

Answer: B

0/10 correct0 marks

Related topics in Algorithms