2 2 votes A hash table has $m$ slots and stores $n$ keys. Assume simple uniform hashing, so each key is equally likely to hash into any slot, independently of other keys. Collisions are resolved by chaining.What is the probability that the first slot ends up empty?$\left(\frac{1}{m}\right)^n$ $\left(\frac{m-1}{m}\right)^n$ $1 - \left(\frac{1}{m}\right)^n$ $1 - \left(\frac{m-1}{m}\right)^n$ Data Structures goclasses goclasses-da-dpp goclasses-da-dpp-day-226 goclasses-cs-dpp goclasses-cs-dpp-day-324 data-structures python-&-dsa goclasses-python-&-dsa-practice-questions goclasses-ds-practice-questions uniform-hashing + – GO Classes 163 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes For one key, probability that it does not hash into the first slot is:$\frac{m-1}{m}$There are $n$ keys, and each key hashes independently.So, probability that none of the $n$ keys hash into the first slot is:$\left(\frac{m-1}{m}\right)^n$Correct option: B. GO Classes answered Jul 16 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.