How to Compute a Moving Sum

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Maslen, David K., Rockmore, Daniel N.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908829636100096
author Maslen, David K.
Rockmore, Daniel N.
author_facet Maslen, David K.
Rockmore, Daniel N.
contents Windowed recurrences are sliding window calculations where a function is applied iteratively across the window of data, and are ubiquitous throughout the natural, social, and computational sciences. In this monograph we explore the computational aspects of these calculations, including sequential and parallel computation, and develop the theory underlying the algorithms and their applicability. We introduce an efficient new sequential algorithm with low latency, and develop new techniques to derive and analyze the complexity and domain of validity of existing sequential algorithms. For parallel computation we derive new parallel and vector algorithms by relating windowed recurrences to the algebraic construction of semidirect products, and to algorithms for exponentiation in semigroups. In the middle chapters of the monograph we further develop the theory of semi-associativity and the algebraic conditions for representing function composition and function application by data. This systematizes the techniques used by practitioners to parallelize recurrence calculations. We end the monograph with an extensive gallery of examples of interest to specialists in many fields. Throughout the monograph new algorithms are described with pseudo-code transcribed from functioning source code.
format Preprint
id arxiv_https___arxiv_org_abs_2509_00537
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle How to Compute a Moving Sum
Maslen, David K.
Rockmore, Daniel N.
Data Structures and Algorithms
Computational Complexity
68Q25, 68W05, 68W10, 68W27, 68W30, 68W40
F.2.1; F.2.2
Windowed recurrences are sliding window calculations where a function is applied iteratively across the window of data, and are ubiquitous throughout the natural, social, and computational sciences. In this monograph we explore the computational aspects of these calculations, including sequential and parallel computation, and develop the theory underlying the algorithms and their applicability. We introduce an efficient new sequential algorithm with low latency, and develop new techniques to derive and analyze the complexity and domain of validity of existing sequential algorithms. For parallel computation we derive new parallel and vector algorithms by relating windowed recurrences to the algebraic construction of semidirect products, and to algorithms for exponentiation in semigroups. In the middle chapters of the monograph we further develop the theory of semi-associativity and the algebraic conditions for representing function composition and function application by data. This systematizes the techniques used by practitioners to parallelize recurrence calculations. We end the monograph with an extensive gallery of examples of interest to specialists in many fields. Throughout the monograph new algorithms are described with pseudo-code transcribed from functioning source code.
title How to Compute a Moving Sum
topic Data Structures and Algorithms
Computational Complexity
68Q25, 68W05, 68W10, 68W27, 68W30, 68W40
F.2.1; F.2.2
url https://arxiv.org/abs/2509.00537