Data Structures & Algorithms
39 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Heap / Priority Queuehistorical
Binary heap representation and priority-queue operations such as push, peek, pop, and heapify.
- Bloom Filterhistorical
Probabilistic membership testing with no false negatives for inserted items and tunable false positives.
- Graphhistorical
Graph modeling, adjacency lists/matrices, directed/undirected and weighted graphs, and common traversals/problems.
- Union-Find (Disjoint Set)historical
Disjoint-set union with find/union, path compression, and union by rank/size.
- LSM Treehistorical
Log-structured merge-tree write path, sorted runs, compaction, read/write amplification, and storage-engine trade-offs.
- Ziplist (Historical Redis Structure)historical
Historical compact sequential Redis encoding and the general memory-versus-update-cost trade-off of packed representations.
- B-Treehistorical
Multiway balanced search trees optimized for block/page-oriented storage and their relationship to B+ trees.
- Sparse Indexhistorical
Indexing selected block/range boundary keys to reduce index size while requiring local scans within the selected region.
- Index Data Structureshistorical
Why indexes trade extra storage/write work for faster lookup, range, search, or aggregation paths.