Hash Tables
1. Which of the following is a common use of a hash table?
2. Which of the following is the correct representation of a hash table after performing the mentioned operations? Assume a table size of 5, direct placement for the given keys, and all values are initially 0.
Insert(25);
Insert(26);
Remove(25);
Insert(50);
3. If a hash table has slots and stores elements, which expression represents its load factor?
4. What is the main purpose of a hash function in a hash table?
5. If , which index is produced for key ?
6. Which of the following can cause the performance of a hash table to deteriorate?
7. Which collision-resolution technique checks a sequence of table positions using a quadratic offset after a collision?
8. Consider a hash table with slots and elements. If increases while remains fixed, what happens to the load factor ?
9. Why does a hash table generally aim for a uniform distribution of keys across its indices?