In sparse convolution-type problems, a common technique is to hash the input integers modulo a random prime for some parameter , which reduces the range of the input integers while preserving their additive structure. However, this hash family suffers from two drawbacks, which led to bottlenecks in many state-of-the-art algorithms: (1) The collision probability of two elements from is rather than ; (2) It is difficult to derandomize the choice of ; known derandomization techniques lead to super-logarithmic overhead [Chan, Lewenstein STOC’15]. In this paper, we partially overcome these drawbacks in certain scenarios, via novel applications of the large sieve inequality from analytic number theory. Consequently, we obtain the following improved algorithms for various problems (in the standard word RAM model): Sparse Nonnegative Convolution: We obtain an -time Las Vegas algorithm that computes the convolution of two nonnegative integer vectors , where is the output sparsity . Moreover, our algorithm terminates in time with probability. Text-to-Pattern Hamming Distances: Given a length- pattern and a length- text , we obtain a deterministic -time algorithm that exactly computes the Hamming distance between and every length- substring of . Sparse General Convolution: We also give a Monte Carlo time algorithm for sparse convolution with possibly negative input in the restricted case where the length of the input vectors satisfies .

生成讲解博客的中文版本

生成AI智能校验的中文版本