GATE CSE
First time here? Checkout the FAQ!
x

hashing [closed]

0 votes
85 views

closed with the note: Duplicate: http://gateoverflow.in/78539/me-hashing
asked in Programming by Boss (5.3k points)  
closed by | 85 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.3k 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.3k points)  
Top Users Jan 2017
  1. Debashish Deka

    8608 Points

  2. sudsho

    5398 Points

  3. Habibkhan

    4718 Points

  4. Bikram

    4522 Points

  5. Vijay Thakur

    4468 Points

  6. saurabh rai

    4222 Points

  7. Arjun

    4122 Points

  8. santhoshdevulapally

    3742 Points

  9. Sushant Gokhale

    3576 Points

  10. GateSet

    3394 Points

Monthly Topper: Rs. 500 gift card

19,177 questions
24,073 answers
52,975 comments
20,310 users