retagged by
2,884 views
0 votes
0 votes
A hash function f defined as f(key) = key mod 7, with linear probing used to resolve collisions. Insert the keys 37, 38, 72, 48, 98 and 11 into the table indexed from 0 to 6.

What will be the location of 11 ?

(A) 3

(B) 4

(C) 5

(D) 6
retagged by

1 Answer

Best answer
0 votes
0 votes

given hashing function

f(key) = key mod 7

with linear probing

LP(k,i) = (f(key) + i) mod 7

0 98
1  
2 37
3 38
4 72
5 11
6 48
selected by

Related questions

0 votes
0 votes
1 answer
4
rishu_darkshadow asked Sep 17, 2017
1,465 views
The unlicensed National Information Infrastructure band operates at the _________ frequency(A) 2.4 GHz(B) 5 GHz(C) 33 MHz(D) 5 MHz