<DS/>DS_VISUALIZER
FoundationsOOPArraysLinked ListStacksQueuesTreesGraphsHashingStrings
exploreExplore
homechevron_rightTopicschevron_rightHashingchevron_rightHash Table
grid_on

HASHING · HASH TABLE

Hash Table Operations

Insert, search, delete in one hashed slot — and what the load factor forces.

Choose an operation

add_boxarrow_outward

Insert

Hash → duplicate check → O(1) head insert.

O(1+α)O(1)◍ 0/6
searcharrow_outward

Search

Hash once, walk ONE chain — never the whole table.

O(1+α)O(1)◍ 0/6
deletearrow_outward

Delete

Hash, walk, unlink — a one-bucket list deletion.

O(1+α)O(1)◍ 0/6
speedarrow_outward

Load Factor & Rehashing

α = n/m climbs past 0.75 → grow and re-place every key.

O(1) amortizedO(n)◍ 0/6