English

Optimal Color Range Reporting in One Dimension

Data Structures and Algorithms 2013-06-24 v1

Abstract

Color (or categorical) range reporting is a variant of the orthogonal range reporting problem in which every point in the input is assigned a \emph{color}. While the answer to an orthogonal point reporting query contains all points in the query range QQ, the answer to a color reporting query contains only distinct colors of points in QQ. In this paper we describe an O(N)-space data structure that answers one-dimensional color reporting queries in optimal O(k+1)O(k+1) time, where kk is the number of colors in the answer and NN is the number of points in the data structure. Our result can be also dynamized and extended to the external memory model.

Keywords

Cite

@article{arxiv.1306.5029,
  title  = {Optimal Color Range Reporting in One Dimension},
  author = {Yakov Nekrich and Jeffrey Scott Vitter},
  journal= {arXiv preprint arXiv:1306.5029},
  year   = {2013}
}
R2 v1 2026-06-22T00:37:53.169Z