A note on the height of binary search trees
Journal of the ACM (JACM)
Increasing the efficiency of quicksort
Communications of the ACM
Communications of the ACM
Martingales on trees and the empire chromatic number of random trees
FCT'09 Proceedings of the 17th international conference on Fundamentals of computation theory
Hi-index | 0.00 |
Let Qn be the random number of comparisons made by quicksort in sorting n distinct keys, when we assume that all n! possible orderings are equally likely. Known results concerning moments for Qn do not show how rare it is for Qn to make large deviations from its mean. Here we give a good approximation to the probability of such a large deviation, and find that this probability is quite small. As well as the basic quicksort we consider the variant in which the partitioning key is chosen as the median of (2t+1) keys.