Implementing FFT
A derivation-oriented guide to FFT implementations, moving from recursive Cooley-Tukey to iterative and in-place variants without explicit bit reversal.
A derivation-oriented guide to FFT implementations, moving from recursive Cooley-Tukey to iterative and in-place variants without explicit bit reversal.
A near-optimal floating-point binary search template that searches representable values via bit-casts instead of hard-coded iteration counts.
A tour of Floyd-Warshall as an instance of aggregating over graph paths, leading to transitive closure, Kleene algebras, and the algebraic path problem.
A guide to permutations through orderings, cycles, and composition, with pointers to common competitive-programming applications.
A tutorial on greedoids as a framework for understanding when greedy-style reasoning works, with examples from matroids, antimatroids, and related structures.
A tutorial on Catalan numbers and uniform random balanced bracket generation, building bijections and generators from first principles.
A beginner-friendly guide to binary search as partition-point search, including invariants, variants, language APIs, and optimizations.
A bunch of DFS and BFS ways to traverse a complement graph efficiently, including linear-time BFS and a DSU-style trick for the DFS case.