InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is true for the LSD radix sort?(a) works best for variable length strings(b) accesses memory randomly(c) inner loop has less instructions(d) sorts the keys in left-to-right orderThe question was posed to me in examination.My query is from Sorting topic in division Sorting of Data Structures & Algorithms II |
|
Answer» RIGHT choice is (b) accesses memory randomly The explanation is: LSD radix sort SORTS the keys in right-to-left order, working with Least Significant Digit first. The inner LOOP has a lot of instructions and LSD radix sort is USED to sort fixed-length strings. |
|