Question: For a hash table, assume the initial array is of size 5 . Whenever a rehash occurs, the new array size is the smallest prime
For a hash table, assume the initial array is of size Whenever a rehash occurs, the new array size is the smallest prime number that is greater than times the original array size. For example, if the array size were then the new array size would be since is the smallest prime number greater than When rehashing, you should use the algorithm described in class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
