Skip to content

Radix sort

ordering

Level 3 of 3

Also called Least significant digit radix sort.

fresh numbers

The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from radix sort's own run on the numbers shown.

choose one

question 1

Radix sort starts on 503, 72, 318, 46, 211, 39, 125. What is the row after the first pass?

5037231846211391250123456789
the answer, and why

the answer is D

The first pass sorts by the ones digit, 1, 2, 3, 5, 6, 8 and 9.

if you chose another

  • That is after two passes, ones then tens.
  • That is the end, after all three passes.
  • That sorts by the hundreds digit first.

new numbers

question 2

How many placings does radix sort make on 305, 7, 42, 618?

3057426180123456789
the answer, and why

the answer is C

The biggest, 618, has three digits, so 3 passes. Each places all 4 numbers.

if you chose another

  • That is one pass, or the numbers in the row.
  • That is the totals added.
  • That adds every count, addition and placing.

new numbers

question 3

On which row does radix sort make the fewest placings?

the answer, and why

the answer is D

One digit each, so one pass of 6 placings.

if you chose another

  • 10 has two digits, so two passes, 12 placings.
  • 100 has three digits, so three passes, 18 placings.
  • In order, but seven numbers, 7 placings.

new numbers