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

具有 $k$ 个错配的更快 ED 字符串匹配

Faster ED-String Matching with $k$ Mismatches

Paweł Gawrychowski, Adam Górkiewicz, Pola Marciniak, Solon P. Pissis, Karol Pokorski

AI总结:

针对弹性退化字符串中具有 $k$ 个错配的模式匹配问题,本文利用结构特征刻画与快速傅里叶变换,设计了时间复杂度为 $\tilde{\mathcal{O}}(nm^{1.5}+N)$ 的算法,突破了此前二次项依赖的瓶颈。

摘要:

我们重新研究了弹性退化字符串中近似模式匹配的复杂度。这种字符串是由 $n$ 个总长度为 $N$ 的有限字符串集合组成的序列,它紧凑地描述了一个字符串集合,该集合是通过在每个集合中精确选择一个字符串,然后将它们拼接在一起而获得的。这受到存储高度相似 DNA 序列集合需求的启发。关于弹性退化字符串的基本算法问题是模式匹配:给定这样一个弹性退化字符串和长度为 $m$ 的标准模式,检查该模式是否出现在所描述集合的某个字符串中。Bernardini 等人 [SICOMP 2022] 展示了如何利用快速矩阵乘法为该问题获得 $\tilde{\mathcal{O}}(nm^{\omega-1})+\mathcal{O}(N)$ 的时间复杂度,其中 $\omega$ 是矩阵乘法指数。然而,到目前为止,对于查找具有 $k$ 个错配(其中 $k$ 为常数)的出现,最好的结果是 Pissis 等人 [CPM 2025] 的 $\tilde{\mathcal{O}}(nm^{2}+N)$ 时间算法。这就引出了一个问题:当从 $k=0$ 移动到更大(但仍然是常数)的 $k$ 时,将对 $m$ 的依赖度从 $m^{\omega-1}$ 增加到二次方是否必要。我们为弹性退化字符串中具有 $k$ 个错配的模式匹配设计了一种 $\tilde{\mathcal{O}}(nm^{1.5}+N)$ 时间的算法,适用于任何常数 $k$。为了获得这个时间界限,我们利用了 Charalampopoulos 等人 [FOCS 2020] 关于 $k$ 个错配出现的结构特征,并结合了快速傅里叶变换。我们需要同时处理多个模式,而不是单个模式,这需要细化原始的特征刻画。这可能具有独立的意义。

英文摘要:

We revisit the complexity of approximate pattern matching in an elastic-degenerate string. Such a string is a sequence of $n$ finite sets of strings of total length $N$, and compactly describes a collection of strings obtained by first choosing exactly one string in every set, and then concatenating them together. This is motivated by the need of storing a collection of highly similar DNA sequences. The basic algorithmic question on elastic-degenerate strings is pattern matching: given such an elastic-degenerate string and a standard pattern of length $m$, check if the pattern occurs in one of the strings in the described collection. Bernardini et al.~[SICOMP 2022] showed how to leverage fast matrix multiplication to obtain an $\tilde{\mathcal{O}}(nm^{ω-1})+\mathcal{O}(N)$-time complexity for this problem, where $w$ is the matrix multiplication exponent. However, the best result so far for finding occurrences with $k$ mismatches, where $k$ is a constant, is the $\tilde{\mathcal{O}}(nm^{2}+N)$-time algorithm of Pissis et al.~[CPM 2025]. This brings the question whether increasing the dependency on $m$ from $m^{ω-1}$ to quadratic is necessary when moving from $k=0$ to larger (but still constant) $k$. We design an $\tilde{\mathcal{O}}(nm^{1.5}+N)$-time algorithm for pattern matching with $k$ mismatches in an elastic-degenerate string, for any constant $k$. To obtain this time bound, we leverage the structural characterization of occurrences with $k$ mismatches of Charalampopoulos et al.~[FOCS 2020] together with fast Fourier transform. We need to work with multiple patterns at the same time, instead of a single pattern, which requires refining the original characterization. This might be of independent interest.

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

↑