Concept Flow - Collision handling (chaining)
Start: Insert key
Compute hash index
Check bucket at index
Bucket empty?
Yes→Create new chain with key
Insert key
Bucket not empty?
No→Add key to existing chain
Insertion done
When inserting a key, compute its hash index. If the bucket is empty, create a new chain with the key. If not, add the key to the existing chain at that bucket.