English

How many interchanges does the selection sort make for iid geometric(p) input?

Computation 2012-02-28 v1

Abstract

The note derives an expression for the number of interchanges made by selection sort when the sorting elements are iid variates from geometric distribution. Empirical results reveal we can work with a simpler model compared to what is suggestive in theory. The morale is that statistical analysis of an algorithm's complexity has something to offer in its own right and should be therefore ventured not with a predetermined mindset to verify what we already know in theory. Herein also lies the concept of an empirical O, a novel although subjective bound estimate over a finite input range obtained by running computer experiments. For an arbitrary algorithm, where theoretical results could be tedious, this could be of greater use.

Keywords

Cite

@article{arxiv.1202.5968,
  title  = {How many interchanges does the selection sort make for iid geometric(p) input?},
  author = {Debasish Sahani and Soubhik Chakraborty},
  journal= {arXiv preprint arXiv:1202.5968},
  year   = {2012}
}

Comments

10 pages

R2 v1 2026-06-21T20:25:41.612Z