Algorithms for Systems

The data structures inside real infrastructure: graph search, balanced trees, and probabilistic sketches.

12 LESSONS~190 MIN
START WITH UNION-FIND ▸ DRILL MODE ⏱

BEFORE YOU START

This path assumes you can already do the following. Each line says where ATLAS teaches it.

  1. 01 UNION-FIND Nearly O(1) connectivity queries via path compression and union by rank L215 MIN
  2. 02 DIJKSTRA'S ALGORITHM Greedy shortest paths, and the one assumption that makes greedy safe L215 MIN
  3. 03 A* SEARCH Dijkstra with a compass, and what happens when the compass lies L215 MIN
  4. 04 RED-BLACK TREE Four colour rules that keep a binary search tree from turning into a list L318 MIN
  5. 05 B-TREE Fat, shallow nodes that grow from the root, one page read per level L215 MIN
  6. 06 BLOOM FILTER Probably yes, definitely no: set membership in a few bits per key L215 MIN
  7. 07 COUNT-MIN SKETCH Approximate frequency counts that never undercount L215 MIN
  8. 08 HYPERLOGLOG Count distinct items in kilobytes, whatever the cardinality L318 MIN
  9. 09 CONSISTENT HASHING Add a node and only about K/(N+1) keys move L216 MIN
  10. 10 SKIP LISTS & TRIES Two ways to search without a balanced tree L215 MIN
  11. 11 TIMER WHEELS A million timeouts without a million-entry heap L215 MIN
  12. 12 CAPSTONE: TOP-K IN A STREAM Everything in this path, in one trending-topics service L320 MIN
COMING TO THIS PATH