On Updating and Querying Submatrices

10/25/2020
by   Jason Yang, et al.
0

In this paper, we study the d-dimensional update-query problem. We provide lower bounds on update and query running times, assuming a long-standing conjecture on min-plus matrix multiplication, as well as algorithms that are close to the lower bounds. Given a d-dimensional matrix, an update changes each element in a given submatrix from x to x▽ v, where v is a given constant. A query returns the △ of all elements in a given submatrix. We study the cases where ▽ and △ are both commutative and associative binary operators. When d = 1, updates and queries can be performed in O(log N) worst-case time for many (▽,△) by using a segment tree with lazy propagation. However, when d≥ 2, similar techniques usually cannot be generalized. We show that if min-plus matrix multiplication cannot be computed in O(N^3-ε) time for any ε>0 (which is widely believed to be the case), then for (▽,△)=(+,min), either updates or queries cannot both run in O(N^1-ε) time for any constant ε>0, or preprocessing cannot run in polynomial time. Finally, we show a special case where lazy propagation can be generalized for d≥ 2 and where updates and queries can run in O(log^d N) worst-case time. We present an algorithm that meets this running time and is simpler than similar algorithms of previous works.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/06/2019

New Amortized Cell-Probe Lower Bounds for Dynamic Problems

We build upon the recent papers by Weinstein and Yu (FOCS'16), Larsen (F...
research
11/11/2022

External-memory dictionaries with worst-case update cost

The B^ϵ-tree [Brodal and Fagerberg 2003] is a simple I/O-efficient exter...
research
06/17/2022

Conjunctive Queries with Output Access Patterns under Updates

We study the dynamic evaluation of conjunctive queries with output acces...
research
04/05/2023

Algorithm and Hardness for Dynamic Attention Maintenance in Large Language Models

Large language models (LLMs) have made fundamental changes in human life...
research
02/23/2021

Conditional Lower Bounds for Variants of Dynamic LIS

In this note, we consider the complexity of maintaining the longest incr...
research
04/07/2020

Maintaining Triangle Queries under Updates

We consider the problem of incrementally maintaining the triangle querie...
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...

Please sign up or login with your details

Forgot password? Click here to reset