Range majority in constant time and linear space

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

Abstract

Given an array A of size n, we consider the problem of answering range majority queries: given a query range [i..j] where 1≤ i ≤ j ≤ n, return the majority element of the subarray A[i..j] if it exists. We describe a linear space data structure that answers range majority queries in constant time. We further generalize this problem by defining range α-majority queries: given a query range [i..j], return all the elements in the subarray A[i..j] with frequency greater than α(j-i+1). We prove an upper bound on the number of α-majorities that can exist in a subarray, assuming that query ranges are restricted to be larger than a given threshold. Using this upper bound, we generalize our range majority data structure to answer range α-majority queries in time using space, for any fixed α ε (0, 1). This result is interesting since other similar range query problems based on frequency have nearly logarithmic lower bounds on query time when restricted to linear space. © 2011 Springer-Verlag.

Cite

CITATION STYLE

APA

Durocher, S., He, M., Munro, J. I., Nicholson, P. K., & Skala, M. (2011). Range majority in constant time and linear space. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 6755 LNCS, pp. 244–255). https://doi.org/10.1007/978-3-642-22006-7_21

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