AlgoScope

Double Hashing

Data structureadvancedHash Tables and Collision Handling

Each key probes with its own stride, 1 + key mod (size - 1), so keys with the same home follow different paths.

Decision · step 4 of 21Hash Table: Double hashing, a stride per key
012345678910probe

Slot 5 is empty, so 5 goes here.

Open in the player →or start at step 4

What you will see

Each key hops with its own stride.

How hash table works →

Cost

insertO(1) expected
searchO(1) expected
worst case opO(n)
SpaceO(capacity)

How you work with it here

play it through, step one change at a time, scrub to any step, run it on your own input, try operations in any order.

Screen readers: Each element is an accessibility element with position, value and state; structural changes are announced per step.

Reduced motion: Elements appear at their destination with a crossfade; no travel longer than the element's own size.