Which of the following is true for the LSD radix sort?

Phạm Quyết

New member
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 order
 
Answer: b
Explanation: 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.
 

Tìm kiếm

Back
Top