1.

Which of the following sorting algorithm is a constituent of tim sort?(a) selection sort(b) quick sort(c) merge sort(d) heap sortI have been asked this question in an interview.My enquiry is from Sorting in section Sorting of Data Structures & Algorithms II

Answer»

The correct CHOICE is (c) merge sort

The explanation is: TIM sort is a HYBRID sorting ALGORITHM which means it uses more than one sorting algorithm as a routine. It is DERIVED from insertion sort and merge sort.



Discussion

No Comment Found

Related InterviewSolutions