pith. sign in

arxiv: 0807.0222 · v1 · submitted 2008-07-01 · 💻 cs.DS · cs.OH

Range Medians

classification 💻 cs.DS cs.OH
keywords arraycomparisonsintervalsmedianproblemalgorithmbatchedbound
0
0 comments X
read the original abstract

We study a generalization of the classical median finding problem to batched query case: given an array of unsorted $n$ items and $k$ (not necessarily disjoint) intervals in the array, the goal is to determine the median in {\em each} of the intervals in the array. We give an algorithm that uses $O(n\log n + k\log k \log n)$ comparisons and show a lower bound of $\Omega(n\log k)$ comparisons for this problem. This is optimal for $k=O(n/\log n)$.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.