Execution time of function

411 Views Asked by At

At the algorithm SELECT, there is the following step:

If $i=k$, then return $x$. Otherwise, use SELECT recursively to find the $i$th
smallest element on the low side if $i<k$, or the $i-k$ th smallest element on
the high side if $i>k$.

How could we find the cost of this step?