English

Median of heaps: linear-time selection by recursively constructing binary heaps

Data Structures and Algorithms 2023-04-25 v1

Abstract

The first worst-case linear-time algorithm for selection was discovered in 1973; however, linear-time binary heap construction was first published in 1964. Here we describe another worst-case linear selection algorithm,which is simply implemented and uses binary heap construction as its principal engine. The algorithm is implemented in place, and shown to perform similarly to in-place median of medians.

Cite

@article{arxiv.2304.12313,
  title  = {Median of heaps: linear-time selection by recursively constructing binary heaps},
  author = {Oliver Serang},
  journal= {arXiv preprint arXiv:2304.12313},
  year   = {2023}
}
R2 v1 2026-06-28T10:16:13.859Z