1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. Which of the following methods is the mo...
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.

Discussion