1.

You have an array of n elements. Suppose you implement quicksort by always choosing the central element of the array as the pivot. Then the tightest upper bound for the worst case performance is

A. O(n2)
B. O(nLogn)
C. Theta(nLogn)
D. Theta(nLogn)
Answer» B. O(nLogn)


Discussion

No Comment Found

Related MCQs