Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For this problem, consider the key, value pair <”bugs”, “bunny”> as an entry in

ID: 3852754 • Letter: F

Question

For this problem, consider the key, value pair <”bugs”, “bunny”> as an entry in a hash table T with a possible m = 125 slots.

C:

Suppose you apply the multiplication method to generate a hash value. Recall that this method works with any value for the constant A, so please specify your chosen value below. What would the resulting h(k) be on the above key?

D:

Choose a universal hash function to generate a hash value. Specify your values of a, b, and p. What would the resulting h(k) be on the above key?

E:

Suppose we expanded the size of the table slightly to have 128 slots, instead of 125. For which type of hash function would this be a poor choice? Explain.

Explanation / Answer

C:

def put(self,key,data):

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote