Towards Optimal Range Medians
From MaRDI portal
Abstract: We consider the following problem: given an unsorted array of 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 time to answer the first queries. This improves previous algorithms by a logarithmic factor and matches a lower bound for . Since 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.
Recommendations
Cited in
(12)- Linear-space data structures for range mode query in arrays
- The optimal statistical median of a convex set of arrays
- Range selection and predecessor queries in data aware space and time
- Linear-space data structures for range frequency queries on arrays and trees
- The reverse problem of range query
- Array range queries
- Range Medians
- Data structures for range median queries
- New algorithms on wavelet trees and applications to information retrieval
- Range selection and median: tight cell probe lower bounds and adaptive data structures
- Towards optimal range medians
- Maximizing the optimality streak of deferred data structuring (a.k.a. database cracking)
This page was built for publication: Towards Optimal Range Medians
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3638057)