Question: A hash table contains slots, and a hash function assigns values to these slots using a hash function. A collision is said to occur if

A hash table contains slots, and a hash function assigns values to these slots using a hash function. A collision is said to occur if more than one value hashes into any particular slot.
a) Suppose a particular table contains 100 slots, and 10 values are inserted, calculate the probability of a collision.
b) What is the maximum number of values that can be stored, in order to be at least 90% sure that there will not be a collision?
Use the pbirthday and qbirthday functions in R to compute the final answers. Include the specific commands used for the computation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!