Arrow Research search
Back to TCS

TCS 2015

Low space data structures for geometric range mode query

Journal Article journal-article Computer Science · Theoretical Computer Science

Abstract

Let S be a set of n points in d dimensions such that each point is assigned a color. Given a query range Q = [ a 1, b 1 ] × [ a 2, b 2 ] × … × [ a d, b d ], the geometric range mode query problem asks to report the most frequent color (i. e. , a mode) of the multiset of colors corresponding to points in S ∩ Q. When d = 1, Chan et al. (2012) [1] gave a data structure that requires O ( n + ( n / Δ ) 2 / w ) words and supports range mode queries in O ( Δ ) time for any Δ ≥ 1, where w = Ω ( log ⁡ n ) is the word size. Chan et al. also proposed a data structures for higher dimensions (i. e. , d ≥ 2 ) with O ( s n + ( n / Δ ) 2 d ) words and O ( Δ ⋅ t n ) query time, where s n and t n denote the space and query time of a data structure that supports orthogonal range counting queries on the set S. In this paper we show that the space can be improved without any increase to the query time, by presenting an O ( s n + ( n / Δ ) 2 d / w ) -word data structure that supports orthogonal range mode queries on a set of n points in d dimensions in O ( Δ ⋅ t n ) time, for any Δ ≥ 1. When d = 1, these space and query time costs match those achieved by the current best known one-dimensional data structure.

Authors

Keywords

  • Range queries
  • Mode
  • Data structures
  • Color queries

Context

Venue
Theoretical Computer Science
Archive span
1975-2026
Indexed papers
16261
Paper id
363414851263276332
v2026.09.13