Linear-Space Data Structures for Range Minority Query in Arrays
We consider range queries that search for low-frequency elements (least frequent elements and α -minorities) in arrays. An α -minority of a query range has multiplicity no greater than an α fraction of the elements in the range. Our data structure for the least frequent element range query problem r...
Gespeichert in:
Veröffentlicht in: | Algorithmica 2015-08, Vol.72 (4), p.901-913 |
---|---|
Hauptverfasser: | , , , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | We consider range queries that search for low-frequency elements (least frequent elements and
α
-minorities) in arrays. An
α
-minority of a query range has multiplicity no greater than an
α
fraction of the elements in the range. Our data structure for the least frequent element range query problem requires
O
(
n
)
space,
O
(
n
3
/
2
)
preprocessing time, and
O
(
n
)
query time. A reduction from boolean matrix multiplication to this problem shows the hardness of simultaneous improvements in both preprocessing time and query time. Our data structure for the
α
-minority range query problem requires
O
(
n
)
space, supports queries in
O
(
1
/
α
)
time, and allows
α
to be specified at query time. |
---|---|
ISSN: | 0178-4617 1432-0541 |
DOI: | 10.1007/s00453-014-9881-9 |