Skip to content

Hash table with double hashing

storing

Level 2 of 3

Also called Double hashing and Open addressing with a second hash.

Seven slots in a row, one number each. A number's home is the remainder it leaves when divided by 7, and its step is 1 more than the remainder by 5. If its home is taken, it moves on by its own step, round to the start, so numbers sharing a home soon part.

slots looked at
0

step 1 of 1

Examples

A number from 1 to 99 puts it in, and a dash before a number takes that number out. Up to 12 of them, separated by commas or spaces, for example 17, 10, 24, -24.