Algorithms

Lazy deletion

In open addressing, deleting by leaving a marker, the tombstone, instead of emptying the bucket, so lookups don't stop there.

Example

With 13 in bucket 3 and 23 in 4, deleting 13 leaves a tombstone at 3, and looking up 23 continues to 4.

Test yourself: Lazy deletion

Hash collisions

Why can't you empty a bucket when deleting in open addressing?

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.