Guided Lesson Notes
Understanding Radix Sort
Radix Sort focuses on ordering data so later operations become simpler, faster, or easier to prove correct. Radix sort processes numbers or strings by digit or character position, often using a stable helper sort at each pass.
Model: view the array as unsorted, partially sorted, and final regions; the algorithm is the rule for growing the final order.
Invariant: after each pass or recursive call, a known part of the data must be correctly ordered or correctly partitioned.
Implementation: comparisons, swaps, shifts, partitions, merges, counts, buckets, or digit passes depending on the algorithm.
Use Radix Sort when the problem becomes easier after values are ordered, grouped, compared with neighbors, or processed by rank.
