AI engineering glossary · Data structures algorithms

What is separate chaining?

Separate chaining (also called chaining): A method of handling collisions where each slot of a hash table holds a small list of all entries that map to it. Lookup hashes to a slot, then searches that short list.

Level: intermediateTopic: Data structures algorithms

Separate chaining: an example

If keys 'a' and 'q' both map to slot 2, slot 2 stores a list with both, and a lookup compares the key against each entry in that list.

Related terms

More Data structures algorithms terms

Where you learn it

Separate chaining 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.