1000000, 1011101, 1111101, 0011101,
0000001, 1010101, 1010110, 0100011
1000000, 0000001, 0100011
1011101, 1111101, 0011101, 1010101,
1010110
1000000, 0000001, 0100011, 1011101,
1111101, 0011101, 1010101, 1010110
1000000, 0000001, 0100011, 1010101,
1010110
1011101, 1111101, 0011101
1000000, 0000001, 0100011, 1010101,
1010110, 1011101, 1111101, 0011101
1000000, 0000001, 0100011
1010101, 1010110, 1011101, 1111101,
0011101
1000000, 0000001, 0100011, 1010101,
1010110, 1011101, 1111101, 0011101
1000000, 0000001, 1010101, 1010110,
1011101, 0011101
1000000, 0000001, 1010101, 1010110,
1011101, 0011101, 0100011, 1111101
0000001, 0011101, 0100011
1000000, 1010101, 1010110, 1011101,
1111101
0000001, 0011101, 0100011, 1000000,
1010101, 1010110, 1011101, 1111101
5.15 We prove that RadixSort is correct using induction on the parameter k.
Basis Step: k = 1. In this case, all the strings have length 1, so that Bq is enqueued with all
the elements sq that were in the list L, for q = 0,…, q. Hence, dequeueing them from the
5.16 RadixSort is indeed stable, since if x and y are equal elements in the list, where x occurs
5.17 The code outline for RadixSort2 is somewhat similar to that for QuickSort, except, for
example, that a straightforward partitioning is done using a simplification of BingoSort.
procedure RadixSort2(S[0:n – 1], k, low, high, j) recursive
Input: S[0:n – 1], k (a list of size n of binary strings of length k), low,high (integers)