Pivot games

Computer Science Level pending

What is the probability that in randomized quick-sort , a random pivot selection on an input of n n keys leads to recursive calls, both of which are no smaller than n 16 \dfrac{n}{ 16} ?

If the probability can be expressed as a b \dfrac{a}{b} , where a a and b b are coprime positive integers . Input a + b a+b as your answer.

Assume the keys are uniform throughout.


The answer is 15.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...