Algorithms and Hardness for Multidimensional Range Updates and Queries

01/06/2021
by   Joshua Lau, et al.
0

Traditional orthogonal range problems allow queries over a static set of points, each with some value. Dynamic variants allow points to be added or removed, one at a time. To support more powerful updates, we introduce the Grid Range class of data structure problems over integer arrays in one or more dimensions. These problems allow range updates (such as filling all cells in a range with a constant) and queries (such as finding the sum or maximum of values in a range). In this work, we consider these operations along with updates that replace each cell in a range with the minimum, maximum, or sum of its existing value, and a constant. In one dimension, it is known that segment trees can be leveraged to facilitate any n of these operations in Õ(n) time overall. Other than a few specific cases, until now, higher dimensional variants have been largely unexplored. We show that no truly subquadratic time algorithm can support certain pairs of these updates simultaneously without falsifying several popular conjectures. On the positive side, we show that truly subquadratic algorithms can be obtained for variants induced by other subsets. We provide two approaches to designing such algorithms that can be generalised to online and higher dimensional settings. First, we give almost-tight Õ(n^3/2) time algorithms for single-update variants where the update operation distributes over the query operation. Second, for other variants, we provide a general framework for reducing to instances with a special geometry. Using this, we show that O(m^3/2-ϵ) time algorithms for counting paths and walks of length 2 and 3 between vertex pairs in sparse graphs imply truly subquadratic data structures for certain variants; to this end, we give an Õ(m^(4ω-1)/(2ω+1)) = O(m^1.478) time algorithm for counting simple 3-paths between vertex pairs.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/03/2018

Multidimensional segment trees can do range queries and updates in logarithmic time

Updating and querying on a range is a classical algorithmic problem with...
research
10/08/2019

Upper and Lower Bounds for Fully Retroactive Graph Problems

Classic dynamic data structure problems maintain a data structure subjec...
research
03/11/2018

Approximate Range Queries for Clustering

We study the approximate range searching for three variants of the clust...
research
07/02/2017

Dynamic Parameterized Problems and Algorithms

Fixed-parameter algorithms and kernelization are two powerful methods to...
research
01/04/2022

Dynamic Suffix Array with Polylogarithmic Queries and Updates

The suffix array SA[1..n] of a text T of length n is a permutation of {1...
research
08/04/2021

Combinatorial Algorithms for Multidimensional Necklaces

A necklace is an equivalence class of words of length n over an alphabet...
research
05/03/2019

Range closest-pair search in higher dimensions

Range closest-pair (RCP) search is a range-search variant of the classic...

Please sign up or login with your details

Forgot password? Click here to reset