TOPICS
Search

Radix Sort


Radix sort is a noncomparative sorting algorithm that orders keys by processing one digit position at a time in a fixed number base. A least-significant-digit radix sort processes positions from right to left and requires the sort at each position to be stable. A most-significant-digit radix sort processes positions from left to right and recursively sorts the resulting buckets.

For n keys having d digits drawn from an alphabet of size b, a bucket implementation takes O(d(n+b)) time and O(n+b) auxiliary space.


See also

Sorting

Explore with Wolfram|Alpha

References

Knuth, D. E. "Digital Sorting." §5.2.5 in The Art of Computer Programming, Vol. 3: Sorting and Searching, 2nd ed. Reading, MA: Addison-Wesley, pp. 168-179, 1998.

Cite this as:

Weisstein, Eric W. "Radix Sort." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/RadixSort.html

Subject classifications