跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2412.00222 · v2

Exact Distances for Parameterized String Matching with Mismatches

首次提交 2024-11-30 03:31
版本更新 2026-11-12 07:06
雷达观测 2026-11-13 14:16
arXiv ↗PDF ↗

摘要

Two strings are considered to have parameterized matching when there exists a bijection of the parameterized alphabet onto itself such that it transforms one string to another. Parameterized matching has application in software duplication detection, image processing, and computational biology. We consider the problem for which a pattern pp, a text tt and a mismatch tolerance limit kk are given and the goal is to find all positions in text tt for which pattern pp parameterized matches with ∣p∣|p|-length substrings of tt with at most kk mismatches. The number of mismatches is the Hamming distance under the best bijection, which we call the parameterized distance. Our main result is an algorithm that computes the parameterized distance at every position of the text, and hence solves this problem for every kk at once. Its running time is O((σp2+σs) nlog⁡m+n TM)O((σ_p^2+σ_s)\, n\log m + n\,T_M), where n=∣t∣n = |t|, m=∣p∣m=|p|, σpσ_p and σsσ_s are the numbers of parameterized and static characters, and TMT_M is the time to compute one maximum weight matching in a bipartite graph with 2σp2σ_p vertices. With the algorithm of Gabow and Tarjan, TM=O(σp2.5log⁡(σpm))T_M=O(σ_p^{2.5}\log(σ_p m)). Since this bound does not depend on kk, our algorithm improves the algorithm by Hazay, Lewenstein and Sokol for k=Ω~(σp5/3+σs2/3)k=\tildeΩ(σ_p^{5/3}+σ_s^{2/3}).

作者备注:14 pages, 3 figures

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

本站首次收录为 v2,暂无更早版本可对照。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v2 · 2026-11-12 07:06 · 最新观测版本

Exact Distances for Parameterized String Matching with Mismatches

Two strings are considered to have parameterized matching when there exists a bijection of the parameterized alphabet onto itself such that it transforms one string to another. Parameterized matching has application in software duplication detection, image processing, and computational biology. We consider the problem for which a pattern pp, a text tt and a mismatch tolerance limit kk are given and the goal is to find all positions in text tt for which pattern pp parameterized matches with ∣p∣|p|-length substrings of tt with at most kk mismatches. The number of mismatches is the Hamming distance under the best bijection, which we call the parameterized distance. Our main result is an algorithm that computes the parameterized distance at every position of the text, and hence solves this problem for every kk at once. Its running time is O((σp2+σs) nlog⁡m+n TM)O((σ_p^2+σ_s)\, n\log m + n\,T_M), where n=∣t∣n = |t|, m=∣p∣m=|p|, σpσ_p and σsσ_s are the numbers of parameterized and static characters, and TMT_M is the time to compute one maximum weight matching in a bipartite graph with 2σp2σ_p vertices. With the algorithm of Gabow and Tarjan, TM=O(σp2.5log⁡(σpm))T_M=O(σ_p^{2.5}\log(σ_p m)). Since this bound does not depend on kk, our algorithm improves the algorithm by Hazay, Lewenstein and Sokol for k=Ω~(σp5/3+σs2/3)k=\tildeΩ(σ_p^{5/3}+σ_s^{2/3}).

查看此版本解读 →查看此版本原文 ↗