Which of the following sorting algorithm will be preferred when the size of partition is between 16 and 2 log while implementing introsort?
A. quick sort
B. insertion sort
C. heap sort
D. merge sort
Answer: a
Explanation: Quicksort proves to be the best sorting algorithm for mid sized arrays as it has low space and time complexity. Thus quick sort is preferred when size of partition is between 16 and 2 log.