GATE CS 2022 · Question 16 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Suppose we are given n keys, m hash table slots, and two simple uniform hash functions h₁ and h₂. Further suppose our hashing scheme uses h₁ for the odd keys and h₂ for the even keys. What is the expected number of keys in a slot?
- (A) m/n
- (B) n/m
- (C) 2n/m
- (D) n/2m
Answer
Answer (B)
Answer from the official GATE CS 2022 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes