Algorithms

Bucket

A slot that groups elements. In a hash table, each slot of its array, chosen by the hash function; in bucket sort, each range the data is split into.

Example

A hash table with 100 buckets sends key 4521 to bucket 21. Bucket sort with 10 buckets sends 0.37 to the bucket for 0.3 to 0.4.

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.