a) Suppose we use radix sort to sort the numbers below, usin…

Questions

а) Suppоse we use rаdix sоrt tо sort the numbers below, using а radix of 10 (i.e. only consider numbers 0-9 using count sorting). Show the state of the sort after each of the first two passes, not after the sorting is complete. Hint: you can add 0s in front of small numbers, e.g. use 0013 to represent 13. Numbers to sort (in their initial order): 131, 1051, 1491, 419, 1735, 17, 68, 2024, 93, 28, 46, 110, 215 b)  Suppose that we are sorting n  decimal numbers with the maximum value being 999,999,999. Compare the complexity of the following three sorting algorithms when n is equal to 1,000,000: 1) Mergesort; 2) Counting sort; 3)Radix sort that use a radix of 10