If you have an object vector, copying objects can be expensive, so most general-purpose hash tables use linked lists that don't need a copy when deleting or pasting. However, deleting from a hash table is actually quite a rare operation in most codes, and insertion should be rare (you don't want to grow long chains), so whenever I implemented hashes myself, I always used vectors for chains, no problem .
An alternative explanation is that a linked list is a container that people blindly reach - see the comments on my blog here to learn more about this.
anon
source
share