Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Volume III: Specialized and Modern Structures

The structures in Volumes I and II assume a single machine, a single thread, exact answers and data that fits in memory. Real systems break every one of those assumptions, and each chapter in this volume relaxes one of them:

Assumption droppedChapterThe idea
Answers must be exact14: Probabilistic Data StructuresBloom filters, cuckoo filters, HyperLogLog and Count-Min trade a controlled error rate for huge savings in memory
Keys are one-dimensional15: Spatial and Geometric Data StructuresKD-trees, quadtrees, R-trees and geohashes answer “what is near this point?”
Memory access is uniform16: External Memory and Cache-Oblivious StructuresCount block transfers instead of operations, and design layouts that are fast at every level of the memory hierarchy
Updates destroy the old version17: Persistent Data StructuresPath copying, fat nodes and structural sharing keep every version alive cheaply; persistent vectors, queues and finger trees; the basis of functional languages, Git and MVCC
One thread at a time18: Concurrent Data StructuresLocks, compare-and-swap, the ABA problem, and when lock-free is worth its complexity
The textbook is the state of the art19: Emerging and Specialized StructuresSuccinct structures, learned indexes, vector search, and why some theoretical winners lose in practice

The last three chapters step back from individual structures to how they are built and used:

ChapterThe idea
20: Data Structure Design PatternsWrappers, iterators, adapters and builders: the recurring ways structures are composed and exposed
21: Algorithm Design Using Data StructuresDivide and conquer, dynamic programming, greedy, backtracking and randomization, and the structure each paradigm leans on
22: Practical ConsiderationsChoosing structures under real constraints, what your language’s standard library really gives you, profiling, and debugging structural bugs

Before you start. Volume I is required. Chapter 14 uses hashing from Chapter 12, Chapter 16 builds on B-trees from Chapter 10, and Chapter 17 builds on BSTs from Chapter 7. Otherwise the chapters are independent and can be read in any order; pick the assumption that matters most to your work.