Sitemap

Recent posts

Radix Sort

1 minute read

Radix sort from least-significant digit upward, and why stability is required

Decision Tree

less than 1 minute read

Decision trees for comparison sorts, and why comparison sorting needs Ω(n log n)

Counting Sort

2 minute read

Stable counting sort in Θ(n+k), with pseudocode and Scala/Python implementations

Randomized Sort

2 minute read

Randomized quicksort: random pivots to avoid adversarial inputs and worst-case splits

Quick Sort

3 minute read

Quicksort partitioning intuition, loop invariants, and best/average/worst-case analysis

Heap Sort

7 minute read

Heap sort explained with max-heapify intuition, CLRS notes, and sample implementations