Next:
DID WE AVERAGE OVER
Up:
DESIGN AND ANALYSIS
Previous:
TIME COMPLEXITY
AVERAGE-CASE COST?
Let
Further, let
is equally likely to be in any position 1 through
.
: event that
Probability of
happening
Thus, average cost
Sushil_Prasad 2012-08-23