Computing generalized convolutions faster than brute force

From MaRDI portal
Publication:6185947

DOI10.1007/S00453-023-01176-2arXiv2209.01623OpenAlexW4387401092MaRDI QIDQ6185947FDOQ6185947


Authors: Barış Can Esmer, Ariel Kulik, Dániel Marx, Philipp Schepper, Karol Węgrzycki Edit this on Wikidata


Publication date: 9 January 2024

Published in: Algorithmica (Search for Journal in Brave)

Abstract: In this paper, we consider a general notion of convolution. Let D be a finite domain and let Dn be the set of n-length vectors (tuples) of D. Let f:DimesDoD be a function and let oplusf be a coordinate-wise application of f. The f-Convolution of two functions g,h:DnoM,ldots,M is (g otimes_f h)( extbf{v}) := sum_{substack{ extbf{v}_g, extbf{v}_h in D^n\ ext{s.t. } extbf{v}_g oplus_f extbf{v}_h}} g( extbf{v}_g) cdot h( extbf{v}_h) for every extbfvinDn. This problem generalizes many fundamental convolutions such as Subset Convolution, XOR Product, Covering Product or Packing Product, etc. For arbitrary function f and domain D we can compute f-Convolution via brute-force enumeration in widetildeO(|D|2nmathrmpolylog(M)) time. Our main result is an improvement over this naive algorithm. We show that f-Convolution can be computed exactly in widetildeO((ccdot|D|2)nmathrmpolylog(M)) for constant c:=3/4 when D has even cardinality. Our main observation is that a emph{cyclic partition} of a function f:DimesDoD can be used to speed up the computation of f-Convolution, and we show that an appropriate cyclic partition exists for every f. Furthermore, we demonstrate that a single entry of the f-Convolution can be computed more efficiently. In this variant, we are given two functions g,h:DnoM,ldots,M alongside with a vector extbfvinDn and the task of the f-Query problem is to compute integer (gotimesfh)(extbfv). This is a generalization of the well-known Orthogonal Vectors problem. We show that f-Query can be computed in widetildeO(|D|fracomega2nmathrmpolylog(M)) time, where omegain[2,2.372) is the exponent of currently fastest matrix multiplication algorithm.


Full work available at URL: https://arxiv.org/abs/2209.01623







Cites Work






This page was built for publication: Computing generalized convolutions faster than brute force

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q6185947)