Quick Sort Experiment

1.Quick-Sort is:
2. Given a random policy for choosing the pivot, when is the worst case time complexity of Quick Sort hit:
3. Function
quick_sort(array) -> sorted-array:
if array is empty: return array
pivot = choose_pivot_index()
smaller_array = [], bigger_array = []
for i = 1 to sizeof(array):
if (-----A-----):
append array[i] to smaller_array
else if (-----B-----):
append array[i] to bigger_array
return quick_sort(smaller_array) + [array[pivot]] + quick_sort(bigger_array)
Which of the following pairs can be selected simultaneously for blanks (A) and (B) in the quick-sort algorithm, and would cover all edge cases.