in DS
4,473 views
0 votes
0 votes
If h is any hashing function and is used to hash n keys into a table of size m, here n<=m, the expected number of collisions involving a particular key x is

a) Less than 1
b) Less than n
c) Less than m
d) Less than n/2
in DS
4.5k views

4 Comments

Option A??
0
0
yes, explain plz!
0
0
According to me, Because load factor <=1

Correct me if I am wrong!
0
0
is there any relation between load factor and collision???
0
0

1 Answer

2 votes
2 votes
Best answer

Ans. Option A - less than 1.

This is a theorem in Universal Hashing -

"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."

Reference: You can check the "Universal Hashing" section of the following link (for details):
http://www.cs.nmsu.edu/~ipivkina/Spring08cs372/Cormen/chapter12HashTables.htm

And a simiar question has been asked earlier too. 

Please refer Cormen on Algorithm for further reading. Yeah!!!

Refer d link below as well:

https://gateoverflow.in/45237/hashing

I hope d explanation helps u. :)

selected by

Related questions