Explanation: 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.
Q. Which is the safest method to choose a pivot element?
β
Correct Answer: (A)
choosing a random element as pivot
Explanation by: Mr. Dubey
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.
Discussion
Question Analytics
916
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
92%
Success Rate