Q.

Which of the following methods is the most effective for picking the pivot element?

A. first element
B. last element
C. median-of-three partitioning
D. random element
Answer» C. median-of-three partitioning
Explanation: median-of-three partitioning is the best method for choosing an appropriate pivot element. picking a first, last or random element as a pivot is not much effective.
698
0
Do you find this helpful?
1

Discussion

No comments yet