πŸ“Š Design and Analysis of Algorithms
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
πŸ’¬ Discuss
βœ… Correct 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.


Explanation by: Mr. Dubey
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

πŸ“Š Question Analytics

πŸ‘οΈ
462
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate