Skip to content

Latest commit

 

History

History

radix_sort

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Radix Sort

Radix sort is a non-comparative integer sorting algorithm that sorts data with integer keys by grouping keys by the individual digits which share the same significant position and value. Radix sort uses counting sort as a subroutine to sort.

Complexity Analysis:

The complexity is O((n+b)∗logb(maxx)) where b is the base for representing numbers and maxx is the maximum element of the input array. This is clearly visible as we make (n+b) iterations logb(maxx) times (number of digits in the maximum element). If maxx≤nc, then the complexity can be written as O(n∗logb(n)).

Graphical examples of Radix Sort

https://www.youtube.com/watch?v=nu4gDuFabIM

https://www.cs.usfca.edu/~galles/visualization/RadixSort.html