Radix Sort is a sorting algorithm that works without any comparison. Instead it works by creating buckets and distributing the elements into them with an assigned key.
Radix Sort can be implemented in two ways:
Complexity
The complexity values for the Radix Sort are:
Aspect | Complexity |
---|---|
Time | |
Space |
Where:
- is the maximum number of digits
- is the base of the number system used
- is the length of the list to be sorted