CS213 DS2023 Lec 24 NonComparativeSort
CS213 DS2023 Lec 24 NonComparativeSort
7
Radix Sort
• Radix sort is a non-comparative 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 dates back as far as 1887 to the work of Herman
Hollerith.
• This type of sort is used frequently in everyday applications.
• For example, to sort library cards by author, we can create a
separate pile for each card based on the first letter of the
name.
• Each pile is then further sorted into smaller piles based on the
second letter of the name
16
Notes about Counting and Radix Sorting
17