{"title":"Range Updates and Range Sum Queries on Multidimensional Points with Monoid Weights","authors":"Shangqi Lu, Yufei Tao","doi":"10.4230/LIPIcs.ISAAC.2022.57","DOIUrl":null,"url":null,"abstract":"Let P be a set of n points in R d where each point p ∈ P carries a weight drawn from a commutative monoid ( M , + , 0). Given a d -rectangle r upd (i.e., an orthogonal rectangle in R d ) and a value ∆ ∈ M , a range update adds ∆ to the weight of every point p ∈ P ∩ r upd ; given a d -rectangle r qry , a range sum query returns the total weight of the points in P ∩ r qry . The goal is to store P in a structure to support updates and queries with attractive performance guarantees. We describe a structure of ˜ O ( n ) space that handles an update in ˜ O ( T upd ) time and a query in ˜ O ( T qry ) time for arbitrary functions T upd ( n ) and T qry ( n ) satisfying T upd · T qry = n . The result holds for any fixed dimensionality d ≥ 2. Our query-update tradeoff is tight up to a polylog factor subject to the OMv-conjecture. 2012 ACM Subject Classification Theory of computation → Data structures design and analysis","PeriodicalId":11245,"journal":{"name":"Discret. Comput. Geom.","volume":"19 1","pages":"102030"},"PeriodicalIF":0.0000,"publicationDate":"2022-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Discret. Comput. Geom.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4230/LIPIcs.ISAAC.2022.57","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Let P be a set of n points in R d where each point p ∈ P carries a weight drawn from a commutative monoid ( M , + , 0). Given a d -rectangle r upd (i.e., an orthogonal rectangle in R d ) and a value ∆ ∈ M , a range update adds ∆ to the weight of every point p ∈ P ∩ r upd ; given a d -rectangle r qry , a range sum query returns the total weight of the points in P ∩ r qry . The goal is to store P in a structure to support updates and queries with attractive performance guarantees. We describe a structure of ˜ O ( n ) space that handles an update in ˜ O ( T upd ) time and a query in ˜ O ( T qry ) time for arbitrary functions T upd ( n ) and T qry ( n ) satisfying T upd · T qry = n . The result holds for any fixed dimensionality d ≥ 2. Our query-update tradeoff is tight up to a polylog factor subject to the OMv-conjecture. 2012 ACM Subject Classification Theory of computation → Data structures design and analysis