MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / initTable

Function initTable

Hashtable/cuckoo-hashing.cpp:21–26  ·  view source on GitHub ↗

function to fill hash table with dummy value * dummy value: INT_MIN * number of hashtables: ver */

Source from the content-addressed store, hash-verified

19* dummy value: INT_MIN
20* number of hashtables: ver */
21void initTable()
22{
23 for (int j=0; j<MAXN; j++)
24 for (int i=0; i<ver; i++)
25 hashtable[i][j] = INT_MIN;
26}
27
28/* return hashed value for a key
29* function: ID of hash function according to which

Callers 1

cuckooFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected