Algorithms / CLRS + MIT 6.006 系列索引
本系列以 CLRS 第四版作为 algorithms 与 data structures 的体系主线,以 MIT 6.006 Fall 2011 的 lecture notes、recitations 和 problem sets 补充直觉、例题与实现;两套材料分工互补,不重复翻译同一内容。
TL;DR
- 主教材:CLRS 第四版(2022),负责定义、证明、伪代码与完整的 algorithmic framework。
- 课程材料:MIT 6.006 Fall 2011,负责 algorithmic thinking、问题建模、worked examples、Python implementation 和 problem-solving process。
- 翻译边界:每篇以一个清晰主题为单位,保留原文的 pseudocode、公式、figure 位置和练习;CLRS 与 6.006 重叠处只保留一次核心解释,并互相注明来源。
- 每篇完成标准:问题定义、算法、正确性理由、复杂度分析、至少一个 worked example,以及必要的实现注意事项。
- 当前版本:MIT 6.006 固定为 Fall 2011;CLRS 固定为 fourth edition。后续不把其他学期的 6.006 内容混入本系列。
目录
Unit 1:Introduction
Unit 2:Sorting and Trees
Unit 3:Hashing
Unit 4:Numerics
Unit 5:Graphs
Unit 6:Shortest Paths
Unit 7:Dynamic Programming
Unit 8:Advanced Topics
版本与材料边界
| 材料 | 固定版本 | 用途 |
|---|
| CLRS | Introduction to Algorithms, 4th edition, 2022 | 定义、证明、伪代码、体系主线 |
| MIT 6.006 | Fall 2011 | lecture notes、recitations、problem sets、Python examples |
| MIT 6.006 课程页面 | Fall 2011 OCW archive | 章节顺序与公开材料入口 |
MIT 6.006 的课程要求 algorithm solution 至少包含 textual description/pseudocode、worked example 或 diagram、correctness proof 或 indication,以及 time/space complexity analysis;本系列沿用这一验收标准。
参考资料
进度日志
- 2026-09-18:建立 Algorithms / CLRS + MIT 6.006 专栏,固定 CLRS 第四版与 MIT 6.006 Fall 2011;第 1 篇《Algorithmic Thinking and Peak Finding》已通过 checker/lint,同步至 bytedepth
posts/728 并绑定为专栏第 1 篇;下一项为 Lecture 2《Models of Computation and Document Distance》。 - 2026-09-18:第 2 篇《Models of Computation and Document Distance》已通过 checker/lint,完成 RAM、pointer machine、Python cost model、document distance、sorting/merge/dictionary 三种实现路径与 measurement 对比,并同步至 bytedepth;下一项为 Lecture 3《Insertion Sort and Merge Sort》。
- 2026-09-18:第 3 篇《Insertion Sort and Merge Sort》已通过 checker/lint,完成 sorting 动机、insertion sort invariant 与复杂度、binary insertion sort、merge sort two-finger merge、recursion tree、auxiliary space、constant factors 与不同 recurrence 对比,并同步至 bytedepth;下一项为 Lecture 4《Heaps and Heap Sort》。
- 2026-09-18:第 4 篇《Heaps and Heap Sort》已通过 checker/lint,完成 priority queue、heap array/tree representation、max-heap property、
max-heapify、build-max-heap 的 Θ(n) 精确分析、heap sort、in-place space 与复杂度总结,并同步至 bytedepth;下一项为 Lecture 5《Binary Search Trees and BST Sort》。 - 2026-09-18:第 5 篇《Binary Search Trees and BST Sort》已通过 checker/lint,完成 runway reservation、BST invariant、insert/search、minimum/maximum、successor、BST sort、subtree size 与
rank query,并同步至 bytedepth;下一项为 Lecture 6《AVL Trees and AVL Sort》。 - 2026-09-18:第 6 篇《AVL Trees and AVL Sort》已通过 checker/lint,完成 balanced BST 动机、AVL invariant、Fibonacci height bound、single/double rotations、insert、AVL sort,以及 ADT 与 data structure 的区分,并同步至 bytedepth;下一项为 Lecture 7《Counting Sort, Radix Sort and Sorting Lower Bounds》。
- 2026-09-18:第 7 篇《Counting Sort, Radix Sort and Sorting Lower Bounds》已通过 checker/lint,完成 comparison model、decision tree、searching 的
Ω(log n) lower bound、sorting 的 Ω(n log n) lower bound、counting sort、stable radix sort 与复杂度边界,并同步至 bytedepth;下一项为 Lecture 8《Hashing with Chaining》。 - 2026-09-18:第 8 篇《Hashing with Chaining》已通过 checker/lint,完成 dictionary ADT、Python dictionary、direct-access table、prehashing、hashing、collision、chaining、load factor、simple uniform hashing、division/multiplication/universal hashing 与 expected complexity,并同步至 bytedepth;下一项为 Lecture 9《Table Doubling and Karp–Rabin》。
- 2026-09-18:第 9 篇《Table Doubling and Karp-Rabin》已通过 checker/lint,完成 table resizing、rehashing、table doubling、amortized analysis、shrink threshold、resizable arrays、string matching、Karp-Rabin 与 rolling hash 的
append/skip 公式及复杂度,并同步至 bytedepth;下一项为 Lecture 10《Open Addressing and Cryptographic Hashing》。 - 2026-09-18:第 10 篇《Open Addressing and Cryptographic Hashing》已通过 checker/lint,完成 probe sequence、open addressing、deletion tombstone、linear probing、primary clustering、double hashing、uniform hashing 的
1/(1-α) 分析,以及 cryptographic hash 的 OW、CR、TCR 与安全应用,并同步至 bytedepth;下一项为 Lecture 11《Integer Arithmetic and Karatsuba Multiplication》。 - 2026-09-18:第 11 篇《Integer Arithmetic and Karatsuba Multiplication》已通过 checker/lint,完成 irrational numbers、Catalan numbers、Newton’s method、高精度 square root、schoolbook multiplication、Karatsuba 的 3 次递归乘法与
Θ(n^{log₂3}) 分析,以及 geometry / power-series 例子,并同步至 bytedepth;下一项为 Lecture 12《Square Roots and Newton’s Method》。 - 2026-09-18:第 12 篇《Square Roots and Newton’s Method》已通过 checker/lint,完成 Newton square-root error analysis、multiplication algorithms 对比、scaled reciprocal division、division error analysis、division 与 square-root 的
Θ(d^α) complexity,以及 floor iteration 的 termination 证明,并同步至 bytedepth;下一项为 Lecture 13《Breadth-First Search》。 - 2026-09-18:第 13 篇《Breadth-First Search》已通过 checker/lint,完成 graph terminology、graph-search applications、Pocket Cube configuration graph、adjacency lists、implicit graphs、incidence lists、frontier-based BFS、
O(V+E) complexity 和 shortest-path tree,并同步至 bytedepth;下一项为 Lecture 14《Depth-First Search and Topological Sorting》。 - 2026-09-18:第 14 篇《Depth-First Search and Topological Sorting》已通过 checker/lint,完成 DFS recursive exploration、DFS forest、tree/back/forward/cross edge classification、
O(V+E) complexity、cycle iff back edge 证明、DAG job scheduling、finishing-time reverse order 与 topological-sort correctness,并同步至 bytedepth;下一项为 Lecture 15《Single-Source Shortest Paths》。 - 2026-09-18:第 15 篇《Single-Source Shortest Paths》已通过 checker/lint,完成 weighted graph、shortest-path definition、single-source data structures、negative edges / negative cycles、relaxation、generic shortest-path approach、pathological edge-order warning、optimal substructure 与 triangle inequality,并同步至 bytedepth;下一项为 Lecture 16《Dijkstra》。
- 2026-09-18:第 16 篇《Dijkstra》已通过 checker/lint,完成 DAG shortest paths、topological-order relaxation、Dijkstra 的 greedy strategy、priority queue pseudocode、worked example、correctness proof、non-negative edge boundary 与 array / binary heap / Fibonacci heap complexity,并同步至 bytedepth;下一项为 Lecture 17《Bellman–Ford》。
- 2026-09-18:第 17 篇《Bellman–Ford》已通过 checker/lint,完成 generic shortest-path algorithm 的问题、full-edge relaxation、|V|−1 轮传播证明、negative-weight cycle detection、worked example、early termination、Θ(VE) complexity 与 longest simple path 边界,并同步至 bytedepth;下一项为 Lecture 18《Speeding Up Dijkstra》。
- 2026-09-18:第 18 篇《Speeding Up Dijkstra》已通过 checker/lint,完成 single-source single-target early stop、bidirectional search、正确 termination、goal-directed search / A*、potential reweighting、path preservation、feasible potentials 与 landmarks,并同步至 bytedepth;Unit 6 已完成,下一项为 Lecture 19《Dynamic Programming I:Fibonacci and Shortest Paths》。
- 2026-09-18:第 19 篇《Dynamic Programming I:Fibonacci and Shortest Paths》已通过 checker/lint,完成 controlled brute force、memoization、bottom-up、Fibonacci 的 exponential recursion 与 Θ(n) DP、edge-budget shortest-path subproblems、guessing、recurrence、DAG view 与 DP design workflow,并同步至 bytedepth;下一项为 Lecture 20《Dynamic Programming II:Text Justification and Blackjack》。
- 2026-09-18:第 20 篇《Dynamic Programming II:Text Justification and Blackjack》已通过 checker/lint,完成 DP 五步法、text justification 的 suffix state / badness / Θ(n²) recurrence、perfect-information Blackjack 的 state / hit guessing / Θ(n³) 分析、DAG view 与 parent pointers reconstruction,并同步至 bytedepth;下一项为 Lecture 21《Dynamic Programming III:Parenthesization, Edit Distance and Knapsack》。
- 2026-09-18:第 21 篇《Dynamic Programming III:Parenthesization, Edit Distance and Knapsack》已通过 checker/lint,完成 suffix / prefix / substring states、matrix-chain parenthesization、edit distance、LCS、0/1 knapsack、parent pointers 与 pseudopolynomial time 边界,并同步至 bytedepth;下一项为 Lecture 22《Dynamic Programming IV:Guitar Fingering, Tetris and Super Mario Bros.》。
- 2026-09-18:第 22 篇《Dynamic Programming IV:Guitar Fingering, Tetris and Super Mario Bros.》已通过 checker/lint,完成 two kinds of guessing、piano/guitar fingering 的 finger state、Tetris 的 board-profile state、Super Mario 的 configuration state、state-space trade-off 与 parent pointers,并同步至 bytedepth;Unit 7 已完成,下一项为 Lecture 23《Computational Complexity》。
- 2026-09-18:第 23 篇《Computational Complexity》已通过 checker/lint,完成 decision problems、R、P、EXP、undecidability、Halting Problem、NP certificates、NP-hard / NP-complete、EXP-complete 与 reductions,并同步至 bytedepth;下一项为 Lecture 24《Topics in Algorithms Research》。
- 2026-09-18:第 24 篇《Topics in Algorithms Research》已通过 checker/lint,完成 parallel processor architecture、memory hierarchy、geometric folding、advanced data structures、distributed / network algorithms、randomization、security、information theory 与 research workflow;24 个 lecture 单元全部完成并同步至 bytedepth。
评论 (0)