next up previous
Next: Up: Previous:

Analysis



TBS = 4n + TISn + 3



Let ni = number of elements in bucket B[i].

The expected time to sort elements in B[i] = E(O(ni2)) = O(E(ni2)).



Note that the expected value of a random variable X as described in Chapter 6, is


\begin{displaymath}E(X) \;=\; \sum_x x Pr(X=x)\end{displaymath}

The variable x here represents the value of X, and Pr(X=x) represents the probability that the value of X is x.



The variance of a random variable X with mean E[X] is notated Var[X].




next up previous
Next: Up: Previous: