Radix Sort Quiz

Q1. A log-processing service must sort 10 million 32-bit integers that arrive in random order. Which Radix Sort variant typically minimizes passes for this data shape?




Q2. Why is Counting Sort the usual sub-routine inside each Radix pass?




Q3. For n keys and b digit positions, LSD Radix Sort using Counting Sort per digit has which time and space complexity?




Q4. A team boosts radix from 2¹⁶ to 2²⁰ for 64-bit IDs. Which impact is MOST likely?




Q5. Sorting IPv4 addresses (four bytes) stored as dotted strings is slow. Which Radix design speeds it up?




Q6. Radix Sort’s asymptotic advantage over comparison sorts most reliably appears when:




Q7. An MSD Radix implementation on variable-length strings produces 'app', 'apple', 'apply' in wrong order. Primary fix?




Q8. In a GPU-based Radix Sort, developers choose per-block shared memory histograms, then global prefix sums. This mainly optimizes:




Q9. For multi-terabyte logs on disk, an external LSD Radix Sort uses a 2-pass distribution plus merge per digit. Key benefit over external Merge Sort?




Q10. You have 10 million customer IDs where leading digits share long common prefixes. Which variant likely saves work?




Q11. A 32-bit signed-integer Radix Sort intermittently misorders negatives. What subtle bug best explains this?




Q12. Why is truly in-place Radix Sort (O(1) extra memory) seldom implemented for large datasets?




data-structures-and-algorithms