All the elements that hash to the same slot are placed into the same linked list in:
Explanation
Right Answer:
Chaining (ya Separate Chaining)
Solution:
Hashing mein jab do ya do se zyada keys ek hi index (slot) par map ho jati hain (Collision), toh Chaining method ka upyog kiya jata hai. Isme har slot ek linked list ka head pointer hota hai.
Mathematical Logic:
Maan lijiye hamare paas ek hash function h(k) hai aur ek hash table T hai. Agar keys k1,k2,…,km ek hi slot i par hash hoti hain, toh:
Tab in sabhi elements ko index T[i] par ek linked list mein store kiya jata hai:
Performance: