Repository navigation
Fill remaining content gaps; fix appendix errors; expand glossary and cheat sheet - #2
Merged
Merged
Conversation
Appendix A: HyperLogLog error was given as ~2% (it is 0.81% standard error at 12 KB, as Chapter 14 itself derives); pairing-heap decrease-key was stated as O(log log n), which is unproven (the exact bound is open); Li Chao tree build was O(n) rather than O(n log C). Adds CSR, circular buffers, bit arrays, order-statistic trees, indexed heaps, SCC, cycle detection, 0-1 BFS, DAG shortest paths, Johnson's algorithm, and new sections for array/sequence techniques and for caches and load balancing. The same HyperLogLog figure is corrected in Chapter 14's intro, Appendix B and the glossary. Also restores 30 missing spaces after closing parentheses left behind when em-dash pairs were converted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ga8rBjM4kRZRhxKLznhSca
New section on the predecessor problem in the word-RAM model: a tested van Emde Boas tree (member, insert, successor, delete) with a worked u = 16 example and diagram, x-fast and y-fast tries, fusion trees and the known lower bounds stated carefully, and when B-trees still win. Three exercises. Also fixes Chapter 1, which listed van Emde Boas operations as O(log n); they are O(log log u) for integer keys below u. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ga8rBjM4kRZRhxKLznhSca
Adds the prefix function (KMP) as a data structure, its link to Aho-Corasick failure links, the Z-array, and rolling hashes / Rabin-Karp with collision bounds and why the base must be random. Adds the structures text editors use: gap buffer, rope and piece table (with a diagram) and VS Code's piece tree, with runnable gap buffer and piece table implementations and a comparison table. Three exercises, including the Thue-Morse attack on 64-bit polynomial hashing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ga8rBjM4kRZRhxKLznhSca
Adds posting-list compression (d-gaps, varint, frame-of-reference and PForDelta, with a worked byte-level example and diagram), intersection by merging, galloping and skip pointers, WAND and block-max WAND top-k retrieval, and Lucene-style immutable segments compared with LSM trees. Three exercises. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ga8rBjM4kRZRhxKLznhSca
…ues sections Covers the graph vocabulary from Chapter 11, the array and pointer techniques from Chapters 3-4, BST and B-tree terms from Chapters 7 and 10, text editor buffers and string matching from Chapter 13, the word-RAM model from Chapter 24, cache and load-balancing terms from Chapter 29, and posting-list terms from Chapter 30. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ga8rBjM4kRZRhxKLznhSca
…apter 3 Chapter 5 gains a section on monotonic stacks and queues: next greater element, the amortized O(n) argument by aggregate and potential methods, stock span, largest rectangle in a histogram, and sliding-window maximum with a monotonic deque. Three exercises (one reworked so it no longer repeats the new body text). Chapter 3 gains compressed bitmaps: why plain bitmaps waste space on sparse sets, WAH/EWAH, and Roaring bitmaps in depth (containers, the 4096 crossover, intersection) with a runnable model. Two exercises. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ga8rBjM4kRZRhxKLznhSca
Adds Robin Hood hashing (swap-on-insert, early-terminating misses, backward-shift deletion) with a tested implementation and measured probe statistics, Swiss tables (control bytes, H1/H2 split, group probing) with a Python model, a comparison of chaining, linear probing, Robin Hood and Swiss tables with who uses each, and hash flooding (the 2011 attacks, random seeds, SipHash, tree bins). Three exercises. Corrects the claim that the 2011 attack forced every affected platform to change its hash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ga8rBjM4kRZRhxKLznhSca
Adds glossary terms for Robin Hood hashing, Swiss tables, control bytes, hash flooding, SipHash, Roaring bitmaps, monotonic stacks and van Emde Boas trees. Appendix A gains rows for text-editor buffers, integer structures, Robin Hood and Swiss tables, Roaring bitmaps, and new tables for string matching and posting-list intersection. Volume I and II overviews mention the new sections; README and landing page counts are updated (~185,000 words, 241 exercises). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ga8rBjM4kRZRhxKLznhSca
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New content (each with tested Python and new exercises):
Fixes
Reference pages
Verification
python3 scripts/check_book.pypasses.mdbook buildemits no warnings.Generated by Claude Code