Question: Suppose we want to store items a , b , c , d , e , f , g , whose keys are: a .
Suppose we want to store items whose keys are:
akey
bkey
ckey
d key
ekey
fkey
gkey
We want to store them in a hash table of size implemented with a dynamic array
A using the hash function kmod by handling collisions using chains.
Start with the array A being of size with all entries initialised to None case
sensitive and insert the items above in order a b c d e f and then g Fill the
blanks with the contents of each entry: if there is only one item in then just
write the name of the item not the key! for instance c without the double
quotes; if A points to a chain containing multiple items, just list them in alphabetical
order by separating them with a comma and no spaces. For example, if A points
to a chain containing items a and fill the blank next to with ab without
the double quotes.
A
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
