Content deleted Content added
m →Properties of pivot: inline math |
|||
Line 144:
The median-calculating recursive call does not exceed worst-case linear behavior because the list of medians is 20% of the size of the list, while the other recursive call recurses on at most 70% of the list, making the running time
:<math>T(n) \leq T(n \cdot 2/10) + T(n \cdot 7/10) +
The O(''n'') term ''c n'' is for the partitioning work (we visited each element a constant number of times, in order to form them into n/5 groups and take each median in O(1) time).
From this, using induction, one can
:<math>T(n) \leq
being c the coefficient of n of the partitioning work cost bound.
=== Important notes ===
|