GATE CS 2022 | Question 16
Programming & Data Structures › Advanced Concepts · MCQ · 1 mark · Answer: B
- Question 16Programming & Data Structuresmcq1 markGiven keys, slots, and two simple uniform hash functions , where is used for odd keys and for even keys, what is the expected number of keys in a slot?
- A.
- B.✓
- C.
- D.
Answer: B
Solution
Answer: (B) Each key (whether hashed by or , both simple uniform) lands in any slot with probability . By linearity of expectation, the expected load of a slot , independent of the split between odd and even keys. - A.
More GATE PYQ on Advanced Concepts
All GATE CS Programming & Data Structures PYQ →Attempt GATE CS 2022 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →