English

Finding the Median (Obliviously) with Bounded Space

Computational Complexity 2015-05-04 v1

Abstract

We prove that any oblivious algorithm using space SS to find the median of a list of nn integers from {1,...,2n}\{1,...,2n\} requires time Ω(nloglogSn)\Omega(n \log\log_S n). This bound also applies to the problem of determining whether the median is odd or even. It is nearly optimal since Chan, following Munro and Raman, has shown that there is a (randomized) selection algorithm using only ss registers, each of which can store an input value or O(logn)O(\log n)-bit counter, that makes only O(loglogsn)O(\log\log_s n) passes over the input. The bound also implies a size lower bound for read-once branching programs computing the low order bit of the median and implies the analog of PNPcoNPP \ne NP \cap coNP for length o(nloglogn)o(n \log\log n) oblivious branching programs.

Keywords

Cite

@article{arxiv.1505.00090,
  title  = {Finding the Median (Obliviously) with Bounded Space},
  author = {Paul Beame and Vincent Liew and Mihai Pǎtraşcu},
  journal= {arXiv preprint arXiv:1505.00090},
  year   = {2015}
}
R2 v1 2026-06-22T09:26:26.382Z