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
Types of structures
How they relate and where they live
Linked lists
Links of a chain
Hash tables
From key to slot in 1 calculation
Hash collisions
When 2 keys want the same spot
Hash algorithms
A good hash spreads evenly
AVL trees
A tree that straightens itself
Choosing how to search
Brute force or using the order
Bucket sort
Split into buckets and sort each one
Divide and conquer
Split, solve and combine
Tower of Hanoi
n − 1, 1 and n − 1
Rate limiting algorithms
5 ways to count
