Loading lesson...
Topics covered: Counting Sort and Radix Sort — Breaking the O(n log n) Barrier, Distributed Sort Design — TeraSort at Scale, Sorting in System Design — Storage Layout as a Sort Decision, Sorting Networks and SIMD — How Columnar Databases Sort in Memory, The Staff Interview Discussion — Framing Sort as a Cost Decision
Counting Sort — O(n + k) for Bounded Integer Ranges Radix Sort — O(d * n) for Multi-Digit Keys
The Range Partitioning Algorithm Tournament Tree (Loser Tree) — Optimal K-Way Merge
The Full Storage Layout Design Question
The Cost Model for Sort Decisions When NOT to Sort — The Anti-Pattern