forked from SarthakShah001/Compiler2K23
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhashTable.h
More file actions
23 lines (20 loc) · 727 Bytes
/
hashTable.h
File metadata and controls
23 lines (20 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
***** Group No. - 9 *****
Name : Sarthak Shah ID : 2020A7PS0092P
Name : Siddharth Khandelwal ID : 2020A7PS0098P
Name : Archaj Jain ID : 2020A7PS0072P
Name : BhanuPratap Singh Rathore ID : 2020A7PS1675P
Name : Rishi Rakesh Shrivastava ID : 2020A7PS0108P
*/
#ifndef _hashtable_
#define _hashtable_
#include "hashTabledef.h"
// calculating hash value for a string
int hash(char *str);
// initialising an hash table
void hash_init(hashtable t);
void hash_insert(hashtable t,char *str,int value);
//searching in the hash table
int find_value(hashtable t,char *str);
bool is_str_present(hashtable t,char*str);
#endif