Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 . ( 5 points ) Suppose we have a hash table of size 2 9 and we want to implement a system for looking
points Suppose we have a hash table of size and we want to implement a system for looking
up a friends information given hisher name. Which of the following hash functions is the best?
Justify your choice. Assuming none of the names is empty. Short Answer and Letter choice
a hx x
b hx n where n is the number of characters in x
c hxordx ordx where x is the first character in the name and x
is the last.
d hx
n
e hx
i
ordxi where n is the number of characters in x xi the ith character in x
and ordc returns the ordinal value of a character. Instruction on the Sigma summation symbol
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started