Computer Science > Data Structures and Algorithms
[Submitted on 10 Apr 2014 (v1), last revised 3 Oct 2014 (this version, v3)]
Title:Optimal Encodings for Range Majority Queries
View PDFAbstract:We study the problem of designing a data structure that reports the positions of the distinct $\tau$-majorities within any range of an array $A[1,n]$, without storing $A$. A $\tau$-majority in a range $A[i,j]$, for $0<\tau< 1$, is an element that occurs more than $\tau(j-i+1)$ times in $A[i,j]$. We show that $\Omega(n\log(1/\tau))$ bits are necessary for any data structure able just to count the number of distinct $\tau$-majorities in any range. Then, we design a structure using $O(n\log(1/\tau))$ bits that returns one position of each $\tau$-majority of $A[i,j]$ in $O((1/\tau)\log\log_w(1/\tau)\log n)$ time, on a RAM machine with word size $w$ (it can output any further position where each $\tau$-majority occurs in $O(1)$ additional time). Finally, we show how to remove a $\log n$ factor from the time by adding $O(n\log\log n)$ bits of space to the structure.
Submission history
From: Gonzalo Navarro [view email][v1] Thu, 10 Apr 2014 02:53:26 UTC (17 KB)
[v2] Mon, 5 May 2014 16:30:24 UTC (19 KB)
[v3] Fri, 3 Oct 2014 22:11:01 UTC (28 KB)
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.