Algorithms

Open addressing

A way to handle collisions without lists: if the bucket is taken, another one in the same array is tried, for example the next, until a free one is found.

Example

With linear probing and 10 buckets, if 3 and 4 are taken, the key 13 is stored in 5.

Test yourself: Open addressing

Hash collisions

With linear probing, if a lookup reaches an ___ bucket, the key isn't in the table.

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.