Linear-Space Data Structures for Range Mode Query in Arrays

Computer Science – Data Structures and Algorithms

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

13 pages, 2 figures

Scientific paper

A mode of a multiset $S$ is an element $a \in S$ of maximum multiplicity; that is, $a$ occurs at least as frequently as any other element in $S$. Given a list $A[1:n]$ of $n$ items, we consider the problem of constructing a data structure that efficiently answers range mode queries on $A$. Each query consists of an input pair of indices $(i, j)$ for which a mode of $A[i:j]$ must be returned. We present an $O(n^{2-2\epsilon})$-space static data structure that supports range mode queries in $O(n^\epsilon)$ time in the worst case, for any fixed $\epsilon \in [0,1/2]$. When $\epsilon = 1/2$, this corresponds to the first linear-space data structure to guarantee $O(\sqrt{n})$ query time. We then describe three additional linear-space data structures that provide $O(k)$, $O(m)$, and $O(|j-i|)$ query time, respectively, where $k$ denotes the number of distinct elements in $A$ and $m$ denotes the frequency of the mode of $A$. Finally, we examine generalizing our data structures to higher dimensions.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Linear-Space Data Structures for Range Mode Query in Arrays does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Linear-Space Data Structures for Range Mode Query in Arrays, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Linear-Space Data Structures for Range Mode Query in Arrays will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-18686

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.