Professional Documents
Culture Documents
Lab - 10 Open Ended Lab 55A
Lab - 10 Open Ended Lab 55A
Lab - 10 Open Ended Lab 55A
Exercise 1:
Consider a hash table of size 13, and assume open addressing with linear probing. Design and
Use hash function of your own choice
1. Show what the hash table will look like after the following items are added in the order
shown.
26 54 77 90 27 30 28 52 96 65
2. What’s the load factor of the hash table after the values above are added?
Exercise 2
1. Show what the hash table will look like after the following items are added in the order
shown.
26 54 77 90 27 30 28 52 96 65
Exercise 3
Instead of numeric data, if the data is a string then define your hash function.
What values your hash function will generate for the following data if the table size is 11