Question 12
Which of the following approaches can improve the worst-case running time of Quick Select to O(n)?
Selecting the median of a random sample of k elements (for a fixed constant k) as the pivot.
Selecting a uniformly random element as the pivot.
Selecting the median element after sorting the entire current subarray before partitioning.
Selecting the pivot using the Median-of-Medians algorithm.