计算机科学 > 数据结构与算法
[提交于 2013年6月21日]
标题:Optimal Color Range Reporting in One Dimension
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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 $Q$, the answer to a color reporting query contains only distinct colors of points in $Q$. In this paper we describe an O(N)-space data structure that answers one-dimensional color reporting queries in optimal $O(k+1)$ time, where $k$ is the number of colors in the answer and $N$ is the number of points in the data structure. Our result can be also dynamized and extended to the external memory model.
提交历史
来自:Yakov Nekrich[v1] 2013年6月21日 星期五 01:35:36 UTC