Labs / Computer Science

Hash Table

Every key is run through a hash function that picks a bucket, then dropped in. When two keys pick the same bucket they collide and hang off the same chain. Insert keys, resize the table, or swap in a worse hash function and watch the chains grow.

Labs / Computer Science / Hash Table

Computer Science20–30 minFoundation

Hash Table

Every key is run through a hash function that picks a bucket, then dropped in. When two keys pick the same bucket they collide and hang off the same chain. Insert keys, resize the table, or swap in a worse hash function and watch the chains grow.

Why it matters

Why explore this?

Computer science turns clear rules into reliable processes. This model lets you step through those rules and see how each decision changes the result.