Programming Throwdown cover image

Hash Maps

Programming Throwdown

00:00

The Load Factor Game

The size is determined in part by one of the design factors that can end up sort of breaking the constant time assumption. The load factor is how many items you have stored in your hash map divided by your current number of buckets. So if you have buckets that are size seven and you have 14 items you tried to store in seven buckets, then clearly you're going to have at least some collisions. And so there's a tradeoff between memory usage and speed.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app