A

Admin • 833K Points
Coach

Q. Which is the safest method to choose a pivot element?

  • (A) choosing a random element as pivot
  • (B) choosing the first element as pivot
  • (C) choosing the last element as pivot
  • (D) median-of-three partitioning method

Explanation by: Admin

this is the safest method to choose the pivot element since it is very unlikely that a random pivot would consistently provide a poor partition.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.