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

To answer my question, follow the instructionsare below in bulletpoints. Hash Ta

ID: 3777653 • Letter: T

Question

To answer my question, follow the instructionsare below in bulletpoints.

Hash Table Insert Write code to complete tins exercise Pass the variable my key to the method convert Key and assign the result to big number Use big number and prime # 151 to calculate the index slot and assign the result to location Insert the variable my key into the array hasher at the slot specified by location Do not declare or marginalize any variables or write convert Key. I will do that Implement the instructions above by placing your Code here:

Explanation / Answer

No language is specified so i am providing the code in C language which can be modified to any other easily. Also question limits a lot to user what it asks for, more information of how this question belong to some main excercise would might be helpful.

------------------------------

int bignumber = convertKey(mykey);

//nothing is mentioned about what hashing function need to be used so i have used a MOD

int location = bignumber % 151;

hasharr[location] = mykey;

----------------------------------

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