paper

Range Medians

arXiv:0807.0222

Abstract

We study a generalization of the classical median finding problem to batched query case: given an array of unsorted items and (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 comparisons and show a lower bound of comparisons for this problem. This is optimal for .

To appear in ESA 08

Range Medians · wovepaper