Distributional convergence for the number of symbol comparisons used by QuickSort

Mathematics – Probability

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

the original posting was accepted subject to minor revision by Annals of Applied Probability; this second posting of the artic

Scientific paper

Most previous studies of the sorting algorithm QuickSort have used the number of key comparisons as a measure of the cost of executing the algorithm. Here we suppose that the n independent and identically distributed (iid) keys are each represented as a sequence of symbols from a probabilistic source and that QuickSort operates on individual symbols, and we measure the execution cost as the number of symbol comparisons. Assuming only a mild "tameness" condition on the source, we show that there is a limiting distribution for the number of symbol comparisons after normalization: first centering by the mean and then dividing by n. Additionally, under a condition that grows more restrictive as p increases, we have convergence of moments of orders p and smaller. In particular, we have convergence in distribution and convergence of moments of every order whenever the source is memoryless, i.e., whenever each key is generated as an infinite string of iid symbols. This is somewhat surprising: Even for the classical model that each key is an iid string of unbiased ("fair") bits, the mean exhibits periodic fluctuations of order n.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Distributional convergence for the number of symbol comparisons used by QuickSort does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Distributional convergence for the number of symbol comparisons used by QuickSort, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Distributional convergence for the number of symbol comparisons used by QuickSort will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-680802

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.