Abstract
This note studies the average-case comparison-complexity of sorting n elements when there is a known distribution on inputs and the goal is to minimize the expected number of comparisons. We generalize Fredman’s algorithm which is a variant of insertion sort and provide a basically tight upper bound: If μ is a distribution on permutations on n elements, then one may sort inputs from μ with expected number of comparisons that is at most H(μ) + 2n, where H is the entropy function. The algorithm uses less comparisons for more probable inputs: For every permutation π, the algorithm sorts π by using at most (Formula presented.) comparisons. A lower bound on the expected number of comparisons of H(μ) always holds, and a linear dependence on n is also required.
| Original language | English |
|---|---|
| Pages (from-to) | 23-28 |
| Number of pages | 6 |
| Journal | Order |
| Volume | 33 |
| Issue number | 1 |
| DOIs | |
| State | Published - 1 Mar 2016 |
Keywords
- Average-case complexity
- Comparison based sorting
- Shannon’s entropy
ASJC Scopus subject areas
- Algebra and Number Theory
- Geometry and Topology
- Computational Theory and Mathematics
Fingerprint
Dive into the research topics of 'A Note on Average-Case Sorting'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver