Improved Parallel Cache-Oblivious Algorithms for Dynamic Programming and Linear Algebra

09/25/2018
by   Yan Gu, et al.
0

For many cache-oblivious algorithms for dynamic programming and linear algebra, we observe that the key factor that affects the cache complexity is the number of input entries involved in each basic computation cell. In this paper, we propose a level of abstraction to capture this property, and refer to it as the k-d grid computation structure. We then show the computational lower bounds for this grid structure, and propose efficient and highly-parallel algorithms to compute such grid structure that optimize the number of arithmetic operations, parallel depth, and the cache complexity in both the classic setting when reads and writes have the same cost, and the asymmetric variant that considers writes to be more expensive than reads. Using the abstraction with the proposed algorithms as the implementation, we propose cache-oblivious algorithms for many fundamental problems with improved cache complexities in both the classic and asymmetric settings. The cache bounds are optimal in most applications we consider. Meanwhile, we also reduce the parallel depths of many problems. We believe that the novelty of our framework is of interests and leads to many new questions for future work.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/09/2021

Analysis of Work-Stealing and Parallel Cache Complexity

Parallelism has become extremely popular over the past decade, and there...
research
11/13/2019

Nested Dataflow Algorithms for Dynamic Programming Recurrences with more than O(1) Dependency

Dynamic programming problems have wide applications in real world and ha...
research
10/30/2018

The 2-domination and Roman domination numbers of grid graphs

We investigate the 2-domination number for grid graphs, that is the size...
research
11/13/2019

Improving the Space-Time Efficiency of Processor-Oblivious Matrix Multiplication Algorithms

Classic cache-oblivious parallel matrix multiplication algorithms achiev...
research
05/14/2021

Fast Stencil Computations using Fast Fourier Transforms

Stencil computations are widely used to simulate the change of state of ...
research
05/25/2023

Improved Algorithms for Allen's Interval Algebra by Dynamic Programming with Sublinear Partitioning

Allen's interval algebra is one of the most well-known calculi in qualit...
research
11/28/2019

Quantum Lower Bounds for 2D-Grid and Dyck Language

We show quantum lower bounds for two problems. First, we consider the pr...

Please sign up or login with your details

Forgot password? Click here to reset