Question 12Asked in UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)

If h is chosen from a universal collection of hash functions and is used to hash n keys into a table of size m, where n ≤ m, the expected number of…

If h is chosen from a universal collection of hash functions and is used to hash n keys into a table of size m, where n ≤ m, the expected number of collisions involving a particular key x is less than .........
  1. A1
  2. B1/n
  3. C1/m
  4. Dn/m
Show answerHide answer

Correct answer: (A) 1

Explanation

Let Xᵢ = 1 if key x collides with the i-th other key, else 0. For a universal hash family, a given pair collides with probability 1/m, so E(Xᵢ) = 1/m. Summing over the other (n – 1) keys, the expected number of collisions involving x is (n – 1)/m. Since n ≤ m, this is less than 1.

From UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions)

This is question 12 of UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.