Sample Data Structures Questions Chapter 12 Searching 9. Suppose that an open-ad
ID: 3713451 • Letter: S
Question
Sample Data Structures Questions
Chapter 12
Searching
Explanation / Answer
The answer to Question 9. load factor= (number of elements present)/(capacity of array)= 81/811= 0.0998~0.1
The answer to Question10. A. ->Average number of accesses =2= 1/2(1+1/(1-A)) .
This gives, A ( load factor)=2/3
A=Items to put in hash table/size of array= 1000/size of array=2/3
So, Size of array=1500.
The answer to Question 10. B->Average number of accesses =2= (1+A/2) .
This gives, A ( load factor)=2
A=Items to put in hash table/size of array= 1000/size of array=2
So, Size of array=500.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.