16.0k views
2 votes
Which of the following statements are true about quick sort

A. It can degrade into an O(n2) sort if the pivot selection scheme is bad

B. It doesnt require additional memory that merges sort does

C. All other answers

D.in practice it can be transfer than merge sort

1 Answer

2 votes

Answer:

C. All Other Answers.

Step-by-step explanation:

Worst case time complexity of quick sort is O(n²) if it selects always the smallest or the largest number in the array it can be optimized by always selecting the right pivot.Since quicksort is inplace it does not require additional memory to sort the array.Quick sort is considered better than merge sort in cases of arrays.

User Firebear
by
4.5k points