Chapter 19 - Worked Exercises 3
Exercise 1 - Hash Sets
Part 0
What is a hash function?
What is a sparse array?
What is the role of a hash function and a sparse array in a hash set?
Part 1
Describe the steps involved in inserting a key into a hash set
Describe the steps involved in finding a key in a hash set
Part 2
What is meant by hash collision?
What is one solution to this problem?
Part 3
How does the performance of hash sets compare to binary search trees in terms of:
Performance of insertion and finding
Memory requirements
Last updated
Was this helpful?