recategorized by
1,976 views
0 votes
0 votes

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. Less than $1$
  2. Less than $lg n$
  3. Greater than $1$
  4. Greater than $lg n$ 
recategorized by

2 Answers

0 votes
0 votes
n - m(1-(m-1)/m)^n)

For a slot collision doesn't occur given by following probability ..

1-((m-1)/m)^n

Expectation for m slot collision doesn't occur...

m((1-((m-1)/m)^n -------------- equation A

So for n keys expected number of times collision occur is ...

n - equation A

Take n= 32 and m=32 it will gives 11.58

So ans should be D.
Answer:

Related questions

1 votes
1 votes
1 answer
1
makhdoom ghaya asked Jul 10, 2016
4,567 views
The reverse polish notation equivalent to the infix expression $((A + B) ^{*} C + D)/(E + F + G)$$A B + C ^{*} D + EF + G + /$ $A B + C D ^{*} + E F + G + /$ $A B + C ^{*...
1 votes
1 votes
2 answers
3
makhdoom ghaya asked Jun 29, 2016
3,463 views
Searching for an element in the hash table requires $O(1)$ time for the _________time, whereas for direct addressing it holds for the _______ time.worst-case, averagewors...
3 votes
3 votes
2 answers
4
go_editor asked Jan 6, 2017
5,528 views
Four bits are used for packed sequence numbering in a slinding window protocol used in a computer network. What is the maximum window size?481516