Suppose you are given the task of sorting n = 1000, 32 bit binary keys. You have
Fantastic news! We've Found the answer you've been seeking!
Question:
(a) Use 1 bit/per group and call counting sort subroutine for each group.
(b) Use 4 bit/per group and call counting sort subroutine for each group.
(c) Use 8 bit/per group and call counting sort subroutine for each group.
(d) Use 16 bit/per group and call counting sort subroutine for each group.
(e) Which of the above three options is preferable? Explain why
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: