Skip to content

Further structures and analysis

Caches and filters

Lessons on this topic

Intermediate · 20 minYou are hereRead

LRU caches

A hash table that points into a doubly linked list finds any cached item in one step and keeps the items in order of use, so the least recently used is evicted when the cache is full.

Intermediate · 20 minYou are hereRead

Bloom filters

Setting k bits per item in a bit array answers “is this in the set?” with “certainly not” or “probably”, using far less memory than storing the items.

Phasorium

Account

Sign inWith Google, GitHub or your email

Subjects

Site

Look