English

Fast Deterministic Selection

Data Structures and Algorithms 2016-08-05 v2

Abstract

The Median of Medians (also known as BFPRT) algorithm, although a landmark theoretical achievement, is seldom used in practice because it and its variants are slower than simple approaches based on sampling. The main contribution of this paper is a fast linear-time deterministic selection algorithm QuickselectAdaptive based on a refined definition of MedianOfMedians. The algorithm's performance brings deterministic selection---along with its desirable properties of reproducible runs, predictable run times, and immunity to pathological inputs---in the range of practicality. We demonstrate results on independent and identically distributed random inputs and on normally-distributed inputs. Measurements show that QuickselectAdaptive is faster than state-of-the-art baselines.

Keywords

Cite

@article{arxiv.1606.00484,
  title  = {Fast Deterministic Selection},
  author = {Andrei Alexandrescu},
  journal= {arXiv preprint arXiv:1606.00484},
  year   = {2016}
}

Comments

Pre-publication draft

R2 v1 2026-06-22T14:15:27.297Z