

McqMate
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. |
View all MCQs in
Design and Analysis of AlgorithmsNo comments yet