Skip to main content
QUICK REVIEW

[Paper Review] Fast Preprocessing for Optimal Orthogonal Range Reporting and Range Successor with Applications to Text Indexing

Younan Gao, Meng He|arXiv (Cornell University)|Jan 1, 2020
Algorithms and Data CompressionComputer Science20 references6 citations
TL;DR

This paper presents the first data structures for 2D orthogonal range reporting, range successor, and sorted range reporting that achieve optimal query times—O(lg lg n + k) or O(lg lg n)—while supporting construction in O(n√lg n) time under the word RAM model. The approach combines wavelet trees with hierarchical decomposition and specialized structures for three-sided and orthogonal reporting, enabling fast preprocessing for geometric and text indexing applications.

ABSTRACT

Under the word RAM model, we design three data structures that can be constructed in $O(n\sqrt{\lg n})$ time over $n$ points in an $n imes n$ grid. The first data structure is an $O(n\lg^ε n)$-word structure supporting orthogonal range reporting in $O(\lg\lg n+k)$ time, where $k$ denotes output size and $ε$ is an arbitrarily small constant. The second is an $O(n\lg\lg n)$-word structure supporting orthogonal range successor in $O(\lg\lg n)$ time, while the third is an $O(n\lg^ε n)$-word structure supporting sorted range reporting in $O(\lg\lg n+k)$ time. The query times of these data structures are optimal when the space costs must be within $O(n\ polylog\ n)$ words. Their exact space bounds match those of the best known results achieving the same query times, and the $O(n\sqrt{\lg n})$ construction time beats the previous bounds on preprocessing. Previously, among 2d range search structures, only the orthogonal range counting structure of Chan and Pǎtraşcu (SODA 2010) and the linear space, $O(\lg^ε n)$ query time structure for orthogonal range successor by Belazzougui and Puglisi (SODA 2016) can be built in the same $O(n\sqrt{\lg n})$ time. Hence our work is the first that achieve the same preprocessing time for optimal orthogonal range reporting and range successor. We also apply our results to improve the construction time of text indexes.

Motivation & Objective

  • To design data structures for 2D orthogonal range reporting, range successor, and sorted range reporting with optimal query times.
  • To achieve construction time of O(n√lg n) for these structures, matching the fastest known preprocessing for similar problems.
  • To close the gap between optimal query performance and fast preprocessing in geometric data structures.
  • To apply the results to improve the construction time of text indexes, particularly in succinct data structures.

Proposed method

  • Construct a 2√lg n-ary wavelet tree with ball inheritance to support efficient rank and select operations on point sequences.
  • For each internal node in the wavelet tree, maintain two auxiliary structures: TSds(u) for three-sided sorted reporting and RSds(u) for orthogonal sorted reporting.
  • Use the wavelet tree to partition the query range into three parts: left, middle, and right subtrees, enabling divide-and-conquer query processing.
  • Query the left and right subtrees using TSds(u) to report points in y-sorted order within subranges, and the middle part using RSds(u) for the full range.
  • Merge the three sorted outputs using a 3-way merge in O(occ) time, where occ is the number of reported points.
  • Leverage the wavelet tree’s structure and hierarchical decomposition to ensure O(n√lg n) total preprocessing time across all nodes.

Experimental results

Research questions

  • RQ1Can we achieve optimal query time for 2D orthogonal range reporting in O(lg lg n + k) time with preprocessing in O(n√lg n) time?
  • RQ2Is it possible to support orthogonal range successor in O(lg lg n) time with O(n√lg n) preprocessing time?
  • RQ3Can we design a data structure for sorted range reporting with O(lg lg n + k) query time and O(n√lg n) preprocessing time?
  • RQ4Can these fast preprocessing structures be applied to improve the construction of text indexes?

Key findings

  • The paper presents an O(n lgϵ n)-word data structure for orthogonal range reporting that supports queries in O(lg lg n + k) time and can be constructed in O(n√lg n) time.
  • An O(n lg lg n)-word structure for orthogonal range successor is designed with O(lg lg n) query time and O(n√lg n) preprocessing time.
  • An O(n lg1+ϵ n)-word structure for sorted range reporting supports queries in O(lg lg n + occ) time with O(n√lg n) preprocessing time.
  • The construction time of O(n√lg n) is the first to match the best-known bounds for optimal query time in these problems.
  • The space bounds match the best-known results for the same query times, making the solution space-optimal.
  • The results are applied to improve text indexing construction, particularly in wavelet tree-based succinct indexes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.