Towards optimal range medians

18Citations
Citations of this article
15Readers
Mendeley users who have this article in their library.
Get full text

Abstract

We consider the following problem: given an unsorted array of n elements, and a sequence of intervals in the array, compute the median in each of the subarrays defined by the intervals. We describe a simple algorithm which uses O(n) space and needs O(nlogk+klogn) time to answer k such median queries. This improves previous algorithms by a logarithmic factor and matches a lower bound for k=O(n). Since, in contrast to previous approaches, the algorithm decomposes the range of element values rather than the array, it has natural generalizations to higher-dimensional problems - it reduces a range median query to a logarithmic number of range counting queries. © 2009 Springer Berlin Heidelberg.

Cite

CITATION STYLE

APA

Gfeller, B., & Sanders, P. (2009). Towards optimal range medians. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 5555 LNCS, pp. 475–486). https://doi.org/10.1007/978-3-642-02927-1_40

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free