Tim sort begins sorting the given array by using which of the following sorting algorithm?

Tim sort begins sorting the given array by using which of the following sorting algorithm?
A. selection sort
B. quick sort
C. insertion sort
D. merge sort
 
Answer: c
Explanation: Tim sort begins sorting any given array by using insertion sort for each run. The array is divided into smaller parts for this purpose, each part having a size equal to value of run. Then these small parts called runs are merged in order to obtain sorted array.
 

Tìm kiếm

Back
Top