Data Structures for Range Median Queries

  • Authors:
  • Gerth Stølting Brodal;Allan Grønlund Jørgensen

  • Affiliations:
  • MADALGO, Department of Computer Science, Aarhus University, Denmark;MADALGO, Department of Computer Science, Aarhus University, Denmark

  • Venue:
  • ISAAC '09 Proceedings of the 20th International Symposium on Algorithms and Computation
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper we design data structures supporting range median queries, i.e. report the median element in a sub-range of an array. We consider static and dynamic data structures and batched queries. Our data structures support range selection queries, which are more general, and dominance queries (range rank). In the static case our data structure uses linear space and queries are supported in O(logn/loglogn) time. Our dynamic data structure uses O(nlogn/loglogn) space and supports queries and updates in O((logn/loglogn)2) time.