Computer science Subject: data structure Please solve the code….

Question Answered step-by-step Computer science Subject: data structure Please solve the code…. Computer science    Subject: data structure Please solve the code…. Image transcription textExperiment 6: The Implementation and Application of Hash function1.1 Purpose of the Experiment Understand and master the principleof hash function; master the algorithm implementation; … Show more… Show moreImage transcription text#include #define OK 1 #define ERROR 0 #defineTRUE 1 #define FALSE 0 #define SUCCESS 1 #define UNSUCCESS0 #define HASHSIZE 7 #define NULLKEY -32768 type… Show more… Show moreImage transcription texthashTable->count=m; for (i=0;ielem[(1.missing code)]=NULLKEY; return OK; /*Hashfunction (division method, remainder left)*/ int Hash(int… Show more… Show moreImage transcription texthashTable->elem[(2.missing code)]=data; /*Searching*/ intSearch(Hash Table * hashTable, int data) inthashAddress=Hash(data); //calculate Hash address //… Show more… Show moreImage transcription text/*Print the results*/ void Display(Hash Table * hashTable) inti; printf(“n//== :/An”); for (1=0;icount;it+) printf(“god &q… Show more… Show moreImage transcription text//Hashtable initialization Init(&hash Table); //Inserting data for(1=0;i