Choosing minimum length k of array for merge sort where use of insertion sort to sort the subarrays is more optimal than standard merge sort
问题 This is a question from Introduction to Algorithms By Cormen. But this isn't a homework problem instead self-study. There is an array of length n . Consider a modification to merge sort in which n/k sublists each of length k are sorted using insertion sort and then merged using merging mechanism, where k is a value to be determined. The relationship between n and k isn't known. The length of array is n . k sublists of n/k means n * (n/k) equals n elements of the array. Hence k is simply a