Concept Flow - Load factor and rehashing
Start with empty hash table
Insert new key
Calculate load factor
Is load factor > threshold?
No→Continue inserting
Yes
Trigger rehashing
Create larger table
Re-insert all keys
Resume insertions
This flow shows how inserting keys updates the load factor, and when it exceeds a limit, triggers rehashing to a bigger table.