Multidimensional Included and Excluded Sums

05/31/2021
by   Helen Xu, et al.
0

This paper presents algorithms for the included-sums and excluded-sums problems used by scientific computing applications such as the fast multipole method. These problems are defined in terms of a d-dimensional array of N elements and a binary associative operator ⊕ on the elements. The included-sum problem requires that the elements within overlapping boxes cornered at each element within the array be reduced using ⊕. The excluded-sum problem reduces the elements outside each box. The weak versions of these problems assume that the operator ⊕ has an inverse ⊖, whereas the strong versions do not require this assumption. In addition to studying existing algorithms to solve these problems, we introduce three new algorithms. The bidirectional box-sum (BDBS) algorithm solves the strong included-sums problem in Θ(d N) time, asymptotically beating the classical summed-area table (SAT) algorithm, which runs in Θ(2^d N) and which only solves the weak version of the problem. Empirically, the BDBS algorithm outperforms the SAT algorithm in higher dimensions by up to 17.1×. The box-complement algorithm can solve the strong excluded-sums problem in Θ(d N) time, asymptotically beating the state-of-the-art corners algorithm by Demaine et al., which runs in Ω(2^d N) time. In 3 dimensions the box-complement algorithm empirically outperforms the corners algorithm by about 1.4× given similar amounts of space. The weak excluded-sums problem can be solved in Θ(d N) time by the bidirectional box-sum complement (BDBSC) algorithm, which is a trivial extension of the BDBS algorithm. Given an operator inverse ⊖, BDBSC can beat box-complement by up to a factor of 4.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/26/2018

Unpopularity Factor in the Marriage and Roommates Problems

We develop an algorithm to compute an unpopularity factor of a given mat...
research
11/05/2019

On the Quantum Complexity of Closest Pair and Related Problems

The closest pair problem is a fundamental problem of computational geome...
research
12/11/2020

Faster Deterministic Modular Subset Sum

We consider the Modular Subset Sum problem: given a multiset X of intege...
research
07/28/2020

Rectangle Tiling Binary Arrays

The problem of rectangle tiling binary arrays is defined as follows. Giv...
research
12/23/2020

Improved Algorithm for Computing the Maximum-volume Bichromatic Separating Box

We consider the problem of computing the largest-area bichromatic separa...
research
09/18/2020

A scalable algorithm for solving linear parabolic evolution equations

We present an algorithm for the solution of a simultaneous space-time di...
research
05/25/2019

Image Detection and Digit Recognition to solve Sudoku as a Constraint Satisfaction Problem

Sudoku is a puzzle well-known to the scientific community with simple ru...

Please sign up or login with your details

Forgot password? Click here to reset