Computer Networks MCQ - Computer Networks Section 1
Hash function given is mod(10).
9679, 1989 and 4199 all these give same hash value i.e 9
1471 and 6171 give hash value 1
Simple Uniform hashing function is a hypothetical hashing function that evenly distributes items into the slots of a hash table. Moreover, each item to be hashed has an equal probability of being placed into a slot, regardless of the other elements already placed.
Using concept of power of cycle:
(A) (0,1,4,9,6,5,6,9,4,1,0) repeated
(B) (0,1,4,9,6,5,6,9,4,1,0) repeated
(C) (0,1,8,7,4,5,6,3,2,9) repeated
(D) (0,2,4,6,8) repeated
So, only h(i) =i3 mod 10 covers all the digits from 0 to 9.
Option (C) is correct.

