We are given a hash table with m=9 slots (indices 0 to 8) and the hash function h(k)=kmod9.
Let us compute the slot index for each of the 9 inserted keys:
h(5)=5mod9=5
h(28)=28mod9=1
h(19)=19mod9=1
h(15)=15mod9=6
h(20)=20mod9=2
h(33)=33mod9=6
h(12)=12mod9=3
h(17)=17mod9=8
h(10)=10mod9=1
Distribution of keys in the slots:
Slot 0: None ⟹length=0
Slot 1: 28,19,10⟹length=3
Slot 2: 20⟹length=1
Slot 3: 12⟹length=1
Slot 4: None ⟹length=0
Slot 5: 5⟹length=1
Slot 6: 15,33⟹length=2
Slot 7: None ⟹length=0
Slot 8: 17⟹length=1
From this distribution:
Maximum chain length: 3 (in slot 1)
Minimum chain length: 0 (in slots 0, 4, 7)
Average chain length: Number of slotsTotal number of keys=99=1
Therefore, the values are 3, 0, and 1, which corresponds to option (A).