arXiv · 1505.00090
Finding the Median (Obliviously) with Bounded Space
Abstract
We prove that any oblivious algorithm using space $S$ to find the median of a list of $n$ integers from $\{1,...,2n\}$ requires time $Ω(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 $s$ registers, each of which can store an input value or $O(\log n)$-bit counter, that makes only $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 $P \ne NP \cap coNP$ for length $o(n \log\log n)$ oblivious branching programs.
Explore related subjects
Keep this discovery
Paul Beame, Vincent Liew, Mihai Pǎtraşcu. 2015-05-01. Finding the Median (Obliviously) with Bounded Space. https://arxiv.org/abs/1505.00090
Cite the original work for its findings. Save a collection to share your selection of sources.