Home › Algorithms
◇ FIELD
Algorithms
From complexity as a yardstick to search, dynamic programming, matrix computation and parallelism — the craft of computation underneath AI.
Work through a volume in order: textbook → foundations → papers → lab.
② Foundations
Articles that assume nothing and build the ideas of the field, in order.
Complexity
Big-O, time-space tradeoffs, and where theory parts from the profiler
- Complexity From Scratch — What Big-O Actually Measures FREE
- When Big-O and Your Benchmarks Disagree — Caches, Branches, and Memory Bandwidth ★ MEMBER
- Randomized Algorithms — Why Rolling Dice Makes Things Faster ★ MEMBER
- NP-Completeness from Scratch — Not Unsolvable, but Fast to Verify FREE
- Approximation Algorithms — Trading Exactness for a Guarantee ★ MEMBER
Data Structures
Arrays, trees, hashes, heaps — what each choice buys you
Search & Optimization
Exhaustive, greedy, DP, branch and bound, approximation
Numerical Computing
GEMM, decompositions, FFT, iterative methods — where AI's compute actually goes
- The Cost of Matrix Multiplication — Where Almost All of AI's Compute Goes ★ MEMBER
- Numerical Pitfalls — Cancellation, Rounding, and logsumexp ★ MEMBER
- How Autodiff Actually Works — Unpacking the PyTorch Magic FREE
- Solving Systems of Equations — Direct Methods and Iterative Methods ★ MEMBER
- Build Your Own Autograd — A Mini PyTorch in 100 Lines ★ MEMBER
Parallel & Distributed
Limits of parallelism, the GPU execution model, communication in distributed training
③ Paper walkthroughs
Written from the papers themselves. Every piece links the paper page and its PDF.
- Probabilistic Data Structures — Counting Without Counting ★ MEMBER "doi:10.1145/362686.362692
- The FFT from Scratch — Why Convolution Turns into Multiplication ★ MEMBER "doi:10.1090/S0025-5718-1965-0178586-1
- Graph Algorithms from Scratch — Shortest Paths and Where They Lead ★ MEMBER arXiv:1603.09320
- Hashing and Nearest-Neighbor Search — The Groundwork Under Vector Search ★ MEMBER arXiv:1603.09320