• edited by
1,152 views
1 1 vote

Suppose we used a hash function H(n) to hash ‘n’ distinct elements (keys) into an array T of length ‘m’. What is the expected number of colliding pairs of elements, if we used simple uniform hashing?

1 Answer

Best answer
1 1 vote
There are nC2 pairs that may collide with probability each=1/m

i.e. (n2-n)/2m which is theta option C.
• selected by
Position:
Show:

Related questions

0 0 votes
1 1 answer
2.8k
2.8k views
Ram Swaroop asked Jan 27, 2019
2,784 views
Consider the hashing table with 'm' slots and 'n' keys. If the expected number of probes in unsuccessful search is 3. The expected number of probes in a successful search...
0 0 votes
1 1 answer
1.3k
1.3k views
1 1 vote
0 0 answers
1.1k
1.1k views
charul asked Oct 30, 2017
1,137 views
https://gateoverflow.in/?qa=blob&qa_blobid=11318007552752576944Answer given is : 40/121