One idea that is often used in selection is that instead of


Question: One idea that is often used in selection is that instead of choosing a random pivot element, we choose three random pivot elements and then use the median of these three as our pivot. What is the probability that a randomly chosen pivot element is in the middle half? What is the probability that the median of three randomly chosen pivot elements is in the middle half? Does this justify the choice of using the median of three as pivot?

Solution Preview :

Prepared by a verified Expert
Mathematics: One idea that is often used in selection is that instead of
Reference No:- TGS02374405

Now Priced at $10 (50% Discount)

Recommended (93%)

Rated (4.5/5)