Collision
Collision
2. In chaining, Hash table never fills up, we can always add In open addressing, table may become full.
more elements to chain.
3. Chaining is Less sensitive to the hash function or load Open addressing requires extra care to avoid clustering
factors. and load factor.
4. Chaining is mostly used when it is unknown how many Open addressing is used when the frequency and number
and how frequently keys may be inserted or deleted. of keys is known.
5. Cache performance of chaining is not good as keys are Open addressing provides better cache performance as
stored using linked list. everything is stored in the same table.
6. Wastage of Space (Some Parts of hash table in chaining In Open addressing, a slot can be used even if an input
are never used). doesn’t map to it.