UGC-NET Jun 2014 · File Organization & Data Types

MCQ · 2 marks · Problem DBMS-INDX-0007

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 \leq m$, the expected number of collisions involving a particular key $K$ is
  1. A
    Less than $1$
  2. B
    Less than $lg n$
  3. C
    Greater than $1$
  4. D
    Greater than $lg n$

Solve it on GATE DA practice →More Storage & Indexing problems

Show the worked solution\[\boxed{\Pr[h(K)=h(y)]\le\frac1m\ \text{for }y\ne K}\]Sum this over the \(n-1\) other keys:\[E[\text{collisions involving }K]\le\frac{n-1}{m}<1\quad\text{because }n\le m.\]Answer: A

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com