Question #57044

A hash table has space for 75 records, then the probability of collision before the table is 6% full.
1

Expert's answer

2015-12-17T11:05:12-0500

Answer on Question #57044 – Math – Statistics and Probability

A hash table has space for 75 records, then the probability of collision before the table is 6% full.

Solution

To make the table 6% full, we need to insert at least (756100)=4.5\left(\frac{75 \cdot 6}{100}\right) = 4.5 round up to 5 values.

- Probability of collision during first insertion is 0

- Probability of collision during second insertion is 175\frac{1}{75}

- Probability of collision during third insertion is 275\frac{2}{75}

- Probability of collision during fourth insertion is 375\frac{3}{75}

- Probability of collision during fifth insertion is 475\frac{4}{75}

- Probability of collision during sixth insertion is 575\frac{5}{75}

So, total probability of collision to make the table 6% full is


1+2+3+4+575=0.2\frac{1 + 2 + 3 + 4 + 5}{75} = 0.2


Answer: 0.2.

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS