Page 1 of 1

Week 7 - Hashing Strategies Critical Thinking Exercise This exercise is based on the Chapter 11 case study in our textbo

Posted: Sat May 14, 2022 8:25 pm
by answerhappygod
Week 7 - Hashing Strategies Critical Thinking Exercise
This exercise is based on the Chapter 11 case study in our
textbook.
Download all the files in the associated Critical Thinking Files
folder,
which appears indented under the assignment.
Think about how all these files work together to profile hashing
strategies.
The examples include linear and quadratic probing.
Most of the examples use integer data and the identity hash
function.
The 4th example of each kind uses string data and a string hash
function.
The examples use two different table lengths: 8 or 29.
Notice that 8 is the smaller and is not a prime number.
Notice that 29 is the larger and is a prime number.
Run the examples and review their output.
Write about the following:
- the strategies that you found reduce the number of
collisions
- the strategies that you found reduce the number of probes
- the pros and cons you see in any of the strategies
- make your own example and describe your strategies, data, and
results
- other insights you discovered