How many interchanges does the selection sort make for iid geometric(p) input?
Debasish Sahani, Soubhik Chakraborty

TL;DR
This paper derives an expression for the expected number of interchanges in selection sort with iid geometric(p) inputs, highlighting the value of empirical analysis in understanding algorithm complexity.
Contribution
It introduces a new empirical approach to estimate algorithm complexity, specifically deriving an expression for selection sort's interchanges with geometric inputs.
Findings
Empirical results simplify the theoretical model.
Statistical analysis offers valuable insights into algorithm complexity.
Proposes the concept of an empirical O bound for finite input ranges.
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.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Machine Learning and Algorithms · Metaheuristic Optimization Algorithms Research
