function to print hash table contents */
| 83 | |
| 84 | /* function to print hash table contents */ |
| 85 | void printTable() |
| 86 | { |
| 87 | printf("Final hash tables:\n"); |
| 88 | |
| 89 | for (int i=0; i<ver; i++, printf("\n")) |
| 90 | for (int j=0; j<MAXN; j++) |
| 91 | (hashtable[i][j]==INT_MIN)? printf("- "): |
| 92 | printf("%d ", hashtable[i][j]); |
| 93 | |
| 94 | printf("\n"); |
| 95 | } |
| 96 | |
| 97 | /* function for Cuckoo-hashing keys |
| 98 | * keys[]: input array of keys |