GATE CSE
First time here? Checkout the FAQ!
x

hashing [closed]

0 votes
105 views

closed with the note: Duplicate: http://gateoverflow.in/78539/me-hashing
asked in Programming by Boss (6.1k points)  
closed by | 105 views
$\frac{5}{11}$ ?
ans is 1/5.

2 Answers

0 votes
Answer : 5/11

Of 11 indexes only 2,3,8,9,10 are free after hashing.

So prob for free collision = 5/11
answered by Loyal (3.6k points)  
0 votes
1. (12*2 + 5)%11 = 7

2. (44*2 + 5)%11 = 5

3. (13*2 + 5)%11 = 9

4. (88*2 + 5)%11 = 5

5. (23*2 + 5)%11 = 7

like 94 -> 6 , 11 -> 5 , 39->6 , 20 -> 1, 16 -> 4 , 5->4;

Free slots are : 0,2,3,8,10

.: Probability that x will not collide is : 5/11.
answered by Active (1.4k points)  


Top Users Sep 2017
  1. Habibkhan

    6334 Points

  2. Warrior

    2202 Points

  3. Arjun

    2150 Points

  4. nikunj

    1980 Points

  5. manu00x

    1726 Points

  6. SiddharthMahapatra

    1718 Points

  7. Bikram

    1706 Points

  8. makhdoom ghaya

    1650 Points

  9. A_i_$_h

    1518 Points

  10. rishu_darkshadow

    1512 Points


25,979 questions
33,554 answers
79,347 comments
31,011 users