Hash Tables
1. In a linear-probing hash table, which circumstance can result in linear running time for a search hit in the worst case?
2. In a hash table, what is the definition of a collision?
3. Which statement correctly describes the purpose of a hash function in a hash table?
4. What is the average-case time complexity of insertion in a well-designed hash table?
5. Which factor has a direct effect on the load factor of a hash table?
6. Which collision-resolution technique uses a second hash function to determine the probe step?
7. If a hash table uses separate chaining and all keys map to the same index, what is the worst-case search complexity?
8. Suppose a hash table has 20 slots and contains 15 elements. What is its load factor?
9. Why is maintaining a suitable load factor important for an open-addressing hash table?