On strictly output sensitive color frequency reporting

Abstract

Given a set of n colored points P ⊂ Rd we wish to store P such that, given some query region Q, we can efficiently report the colors of the points appearing in the query region, along with their frequencies. This is the color frequency reporting problem. We study the case where query regions Q are axis-aligned boxes or dominance ranges. If Q contains k colors, the main goal is to achieve ``strictly output sensitive'' query time O(f(n) + k). Firstly, we show that, for every s ∈ \ 2, …, n \, there exists a simple O(nss n) size data structure for points in R2 that allows frequency reporting queries in O( n + ks n) time. Secondly, we give a lower bound for the weighted version of the problem in the arithmetic model of computation, proving that with O(m) space one can not achieve query times better than Ω(ϕ (n / ϕ) (m / n)), where ϕ is the number of possible colors. This means that our data structure is near-optimal. We extend these results to higher dimensions as well. Thirdly, we present a transformation that allows us to reduce the space usage of the aforementioned data structure to O(n(s ϕ) s n). Finally, we give an O(n1+ + m n + K)-time algorithm that can answer m dominance queries R2 with total output complexity K, while using only linear working space.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…