Suppose we use a hash function h to hash n distinct keys into an array T of length m. Assuming simple uniform hashing, what is the expected number of collisions? More precisely, what is the expected cardinality of {{k, l} : k 6= l and h(k) = h(l)}?

Respuesta :

Answer:

See attached pictures.

Explanation:

See attached pictures for detailed explanation.

Ver imagen abdullahfarooqi
Ver imagen abdullahfarooqi