Proof. For the case (i) where xj is never selected as
a pivot for a partition, we in the following adopt
the convention that xj is considered the pivot for the
recursive call where the input consists of xj only. This
ensures that each element becomes a pivot exactly once.
We rst note that the probability that xi is in the
input to the recursive call with pivot xj is 1
ji