Range Medians

  • Authors:
  • Sariel Har-Peled;S. Muthukrishnan

  • Affiliations:
  • Department of Computer Science, University of Illinois, Urbana, USA 61801;Google Inc., New York NY, 10011

  • Venue:
  • ESA '08 Proceedings of the 16th annual European symposium on Algorithms
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

We study a generalization of the classical median finding problem to batched query case: given an array of unsorted nitems and k(not necessarily disjoint) intervals in the array, the goal is to determine the median in eachof the intervals in the array. We give an algorithm that uses O(nlogk+ klogklogn) comparisons and show a lower bound of 茂戮驴(nlogk) comparisons for this problem. This is optimal for k= O(n/logn).