Lune

STOC2024顶会

Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and More

Ce Jin, Yinzhan Xu

2024年份
1被引次数
7顶会引用

摘要

In sparse convolution-type problems, a common technique is to hash the input integers modulo a random prime p ∈ [Q/2, Q] for some parameter Q, 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 [N ] is O( log N Q ) rather than O( 1 Q );

(2) It is difficult to derandomize the choice of p; 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 O(t log t)-time Las Vegas algorithm that computes the convolution A ⋆ B of two nonnegative integer vectors A, B, where t is the output sparsity A ⋆ B 0 . Moreover, our algorithm terminates in O(t log t) time with 1 -1/poly(t) probability. This simultaneously improves the O(t log t log log t)-time Las Vegas algorithm [Bringmann, Fischer, Nakos SODA'22] and the Monte Carlo O(t log t)time algorithm with failure probability 2 - √ log t [Bringmann, Fischer, Nakos STOC'21].

• Text-to-Pattern Hamming Distances: Given a length-m pattern P and a length-n text T , we obtain a deterministic O(n √ m log log m)-time algorithm that exactly computes the Hamming distance between P and every length-m substring of T . This improves the previous O(n √ m(log m log log m) 1/4 )-time deterministic algorithm [Chan, Jin, Vassilevska Williams, Xu FOCS'23] and nearly matches their O(n √ m)-time Las Vegas algorithm.

• Sparse General Convolution: For sparse convolution with possibly negative input, all previous approaches required Ω(t log 2 t) time, where t is the maximum of input and output sparsity, and an important question left open by [Bringmann, Fischer, Nakos STOC'21] is whether this can be improved. We make partial progress towards solving this question by giving a Monte Carlo O(t log t) time algorithm in the restricted case where the length N of the input vectors satisfies N ≤ t 1.99 .

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

引用它的顶会 Paper7

问问它们各自怎么用它

它引用的顶会 Paper13

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖