recategorized by
1,946 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

4.5k
views
1 answers
1 votes
makhdoom ghaya asked Jul 10, 2016
4,522 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 ^{*...
2.0k
views
2 answers
0 votes
makhdoom ghaya asked Jul 12, 2016
2,003 views
Suppose that the splits at every level of quicksort are in the proportion $(1 – \alpha)$ to $\alpha$, where $0<\alpha\leq\frac{1}{2}$ is a constant. The minimum depth o...
3.4k
views
2 answers
1 votes
makhdoom ghaya asked Jun 29, 2016
3,428 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...
5.3k
views
2 answers
3 votes
go_editor asked Jan 6, 2017
5,321 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