Duas chaves distintas podem fazer hash para o mesmo bucket — uma colisão. Tabelas hash permanecem O(1) em média resolvendo colisões e redimensionando antes que os buckets fiquem lotados, controlado pelo fator de carga.
Resolução de colisão
text
Separate chaining: each bucket holds a list
[3] -> ("cat",9) -> ("rat",2) # both hashed to 3
Open addressing: probe to the next free slot
hash=3 taken -> try 4 -> try 5 ... (linear probing)
