AI engineering glossary · Data structures algorithms

What is load factor?

Load factor: For a hash table, the ratio of stored entries to available slots: load factor = n / m. A high value means more collisions, so implementations resize and rehash the table when it crosses a threshold.

Level: advancedTopic: Data structures algorithms

Load factor: an example

A table with 75 entries in 100 slots has load factor 0.75. Adding entries beyond a chosen limit triggers doubling to 200 slots.

Related terms

More Data structures algorithms terms

Where you learn it

Load factor is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.