Learn the data structures behind fast tries, radix trees, suffix arrays, suffix trees, inverted indexes, postings lists, B+ trees, LSM trees, skip lists, spatial indexes, and the practical trade-offs behind indexing data for fast answers.
Fast search is rarely an accident. It comes from maintained structure.
Indexes, Text Structures, and Search-Oriented Data Structures is an advanced, practical guide to the data structures that power search, retrieval, and query-heavy systems. It connects theoretical structures to real systems by explaining not only how each index works, but why it exists, what query shape it serves, and what it costs to maintain.
Inside, you will learn how
- Use tries and radix trees for prefix search, autocomplete, routing, and longest-prefix matching - Understand suffix arrays, suffix trees, and suffix automata for substring search intuition - Build the mental model behind inverted indexes, tokenization, term dictionaries, and postings lists - Reason about Boolean retrieval, phrase queries, compression, skip data, and ranking support - Explain B-trees and B+ trees as page-friendly structures for database indexes and range scans - Understand LSM-tree memtables, SSTables, Bloom filters, compaction, and amplification - Use skip lists as randomized ordered structures for in-memory indexes - Compare grids, quadtrees, k-d trees, R-trees, geohashes, and space-filling curves for spatial lookup - Evaluate index maintenance, write costs, freshness, rebuilds, storage overhead, and query-pattern drift
This book is written for developers who already know basic data structures and want to understand how search-oriented systems are shaped. It avoids treating indexes as magic speed buttons. Every chapter starts with the workload that creates the structure, then explains the invariant, mechanics, trade-offs, and failure modes.
By the end, you will be able to look at a query pattern and explain whether it calls for a trie, suffix array, inverted index, B+ tree, LSM tree, skip list, spatial index, or no index at all.
An index is a maintained ask this kind of question often enough, and the system will remember the right shape so the next answer does not require scanning everything again.
This book teaches that promise across text, storage, and spatial search. It shows how prefix paths, suffix order, postings lists, page layouts, sorted immutable files, randomized express lanes, and bounding boxes all serve the same deeper trade maintenance for faster answers.