Abstract

We study the problem of designing a data structure that reports the positions of the distinct ττ-majorities within any range of an array A[1,n]A[1,n], without storing AA. A ττ-majority in a range A[i,j]A[i,j], for 0<τ<10<τ< 1, is an element that occurs more than τ(j−i+1)τ(j-i+1) times in A[i,j]A[i,j]. We show that Ω(nlog⁡(1/τ))Ω(n\log(1/τ)) bits are necessary for any data structure able just to count the number of distinct ττ-majorities in any range. Then, we design a structure using O(nlog⁡(1/τ))O(n\log(1/τ)) bits that returns one position of each ττ-majority of A[i,j]A[i,j] in O((1/τ)log⁡log⁡w(1/τ)log⁡n)O((1/τ)\log\log_w(1/τ)\log n) time, on a RAM machine with word size ww (it can output any further position where each ττ-majority occurs in O(1)O(1) additional time). Finally, we show how to remove a log⁡n\log n factor from the time by adding O(nlog⁡log⁡n)O(n\log\log n) bits of space to the structure.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.