English

Efficient Parallelization of a Ubiquitous Sequential Computation

Data Structures and Algorithms 2023-12-29 v4 Machine Learning

Abstract

We find a succinct expression for computing the sequence xt=atxt1+btx_t = a_t x_{t-1} + b_t in parallel with two prefix sums, given t=(1,2,,n)t = (1, 2, \dots, n), atRna_t \in \mathbb{R}^n, btRnb_t \in \mathbb{R}^n, and initial value x0Rx_0 \in \mathbb{R}. On nn parallel processors, the computation of nn elements incurs O(logn)\mathcal{O}(\log n) time and O(n)\mathcal{O}(n) space. Sequences of this form are ubiquitous in science and engineering, making efficient parallelization useful for a vast number of applications. We implement our expression in software, test it on parallel hardware, and verify that it executes faster than sequential computation by a factor of nlogn\frac{n}{\log n}.

Keywords

Cite

@article{arxiv.2311.06281,
  title  = {Efficient Parallelization of a Ubiquitous Sequential Computation},
  author = {Franz A. Heinsen},
  journal= {arXiv preprint arXiv:2311.06281},
  year   = {2023}
}

Comments

Source code for replicating our results is available online at https://github.com/glassroom/heinsen_sequence

R2 v1 2026-06-28T13:17:39.392Z