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 541, 756, 320, 977, 929, 182, 760. What is the row after the first pass?

5417563209779291827600123456789
the answer, and why

the answer is A

The first pass puts the numbers in order of their ones digits, 0, 0, 1, 2, 6, 7, 9, keeping the row's order among equal digits: 320, 760, 541, 182, 756, 977, 929.

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 numbersthe test page's numbers

question 2

How many placings does radix sort make on 205, 659, 276, 775?

2056592767750123456789
the answer, and why

the answer is D

The biggest, 775, has 3 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 numbersthe test page's numbers

question 3

On which row does radix sort make the fewest placings?

the answer, and why

the answer is D

Radix sort makes 5 placings on 8, 6, 4, 9, 7, the fewest of the four.

if you chose another

  • Radix sort makes 12 placings on this row, more than 5.
  • Radix sort makes 10 placings on this row, more than 5.
  • Radix sort makes 6 placings on this row, more than 5.

new numbersthe test page's numbers