Hash table

Hash table

A hash table is a data structure that can map keys to values using a hash function. It does this by computing an index using the hash function and stores the value in an array.

OperationBig-O
AccessN/A
SearchO(1)
InsertO(1)
RemoveO(1)

To be clear, the O(1) is average case as it depends on the underlying hash function, but in most instances it is safe to assume average case.

References