A Simple Las Vegas Algorithm for Sparse Nonnegative Convolution
arXiv:2608.16123
Abstract
Let be nonnegative vectors and let . We give a Las Vegas algorithm that computes in expected time. More generally, for every , the algorithm terminates within time with probability at least . The algorithm uses dense convolution, linear hashing, and the length reduction of \cite{BFN22}. Its main ingredient is a carry-free representation of the indices as vectors of constant dimension whose coordinates have size . We can then take our hash function to be the inner product with a random element of for a prime of size : this preserves addition and gives collision probability exactly , while identities regarding the moments of the vectors identify and recover the isolated terms as in \cite{BFN22}. Our expected running time matches that of Jin and Xu~\cite{JX24} while using substantially different tools and yielding a simpler algorithm. Note that their algorithm also terminates within time with probability at least , while our tail bound is weaker.