1.

Which of the following should be used to sort a huge database on a fixed-length key field?(a) Insertion sort(b) Merge sort(c) LSD radix sort(d) Quick sortThis question was addressed to me during an online exam.This interesting question is from Sorting in section Sorting of Data Structures & Algorithms II

Answer»

The CORRECT ANSWER is (c) LSD radix SORT

For explanation: LSD radix requires only w passes to sort a fixed-LENGTH string, where w is a length of the strings. So, LSD radix sort is best suited to sort a huge database on a fixed-length key FIELD.



Discussion

No Comment Found

Related InterviewSolutions