arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.20764cs.DS
收藏

3SUM计数在细粒度复杂性与模式匹配中的新应用

New Applications of 3SUM-Counting in Fine-Grained Complexity and Pattern Matching

Nick Fischer, Ce Jin, Yinzhan Xu

AI总结:

本文开发近似3SUM计数、小加倍3SUM计数及确定性BSG算法,并据此实现4环枚举归约去随机化、证明#3SUM与3SUM确定性等价,还改进近似汉明距离和k失配星座问题。

摘要:

3SUM问题是细粒度复杂性的基石之一。对它的研究已经产生了无数下界,但正如此前零星观察到的——也正如我们将再次证明的——关于3SUM的洞见同样能够带来算法应用。\n\n我们工作的起点是投入大量技术精力,为3SUM类型问题开发新算法,例如近似3SUM计数、小加倍3SUM计数,以及针对加性组合学中著名的Balog-Szemerédi-Gowers定理给出确定性次二次时间算法。作为这些工具的结果,我们在细粒度复杂性和模式匹配算法中得到了多种新结论,回答了许多互不相关研究领域中的开放问题。具体而言:\n\n- 最近关于“短环移除”技术的一系列研究,通过随机化细粒度归约,为多种图问题给出了基于3SUM的紧下界 [Abboud, Bringmann, Fischer; STOC '23] [Jin, Xu; STOC '23]。在本文中,我们将到重要的4-Cycle Listing(4环枚举)问题的归约去随机化。\n- 我们证明,在确定性归约下,#3SUM与3SUM在细粒度意义上等价。\n- 我们为(1+ε)-近似Text-to-Pattern Hamming Distances(文本到模式汉明距离)问题给出时间复杂度为n^{1+o(1)}·ε^{-1}的确定性算法。\n- 在k-Mismatch Constellation(k失配星座)问题中,输入由两个整数集合A, B ⊆ [N]组成,目标是检验是否存在平移c,使得|(c+B)\A| ≤ k(即B平移c后是否与A匹配且至多有k个失配)。对于适度小的k,此前最佳运行时间为Õ(|A|·k) [Cardoze, Schulman; FOCS '98] [Fischer; SODA '24]。在|B|=Θ(|A|)的情形下,我们给出一个更快的、运行时间为|A|·k^{2/3}·N^{o(1)}的算法。

英文摘要:

The 3SUM problem is one of the cornerstones of fine-grained complexity. Its study has led to countless lower bounds, but as has been sporadically observed before -- and as we will demonstrate again -- insights on 3SUM can also lead to algorithmic applications. The starting point of our work is that we spend a lot of technical effort to develop new algorithms for 3SUM-type problems such as approximate 3SUM-counting, small-doubling 3SUM-counting, and a deterministic subquadratic-time algorithm for the celebrated Balog-Szemerédi-Gowers theorem from additive combinatorics. As consequences of these tools, we derive diverse new results in fine-grained complexity and pattern matching algorithms, answering open questions from many unrelated research areas. Specifically: - A recent line of research on the "short cycle removal" technique culminated in tight 3SUM-based lower bounds for various graph problems via randomized fine-grained reductions [Abboud, Bringmann, Fischer; STOC '23] [Jin, Xu; STOC '23]. In this paper we derandomize the reduction to the important 4-Cycle Listing problem. - We establish that \#3SUM and 3SUM are fine-grained equivalent under deterministic reductions. - We give a deterministic algorithm for the $(1+ε)$-approximate Text-to-Pattern Hamming Distances problem in time $n^{1+o(1)} \cdot ε^{-1}$. - In the $k$-Mismatch Constellation problem the input consists of two integer sets $A, B \subseteq [N]$, and the goal is to test whether there is a shift $c$ such that $|(c + B) \setminus A| \leq k$ (i.e., whether $B$ shifted by $c$ matches $A$ up to $k$ mismatches). For moderately small $k$ the previously best running time was $\tilde O(|A| \cdot k)$ [Cardoze, Schulman; FOCS '98] [Fischer; SODA '24]. We give a faster $|A| \cdot k^{2/3} \cdot N^{o(1)}$-time algorithm in the regime where $|B| = Θ(|A|)$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑