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

子串一致等价关系下模式匹配问题的并行算法

Parallel algorithm for pattern matching problems under substring consistent equivalence relations

Davaajav Jargalsaikhan, Diptarama Hendrian, Ryo Yoshinaka, Ayumi Shinohara

摘要:

给定一个文本和一个字母表上的模式,模式匹配问题搜索该模式在文本中的所有出现。等价关系$\approx$称为子串一致等价关系(SCER),如果对于两个字符串$X$和$Y$,$X \approx Y$意味着所有$1 \le i \le j \le |X|$的$|X| = |Y|$和$X[i:j] \approx Y[i:j]$。在本文中,我们提出了一个有效的并行算法的模式匹配下的任何SCER使用“双扫描”的范例。对于长度为$m$的模式和长度为$n$的文本,我们的算法在$O(ξ_m^\mathrm{t} \log^2 m)$时间和$O(ξ_m^\mathrm{w} \cdot n \log^2 m)$工作中运行,在优先并发读并发写并行随机存取机(P-CRCW PRAM)上进行$O(τ_n^\mathrm{t} + ξ_m^\mathrm{t} \log^2 m)$时间和$O(τ_n^\mathrm{w} + ξ_m^\mathrm{w} \cdot m \log^2 m)$工作预处理。

英文摘要:

Given a text and a pattern over an alphabet, the pattern matching problem searches for all occurrences of the pattern in the text. An equivalence relation $\approx$ is called a substring consistent equivalence relation (SCER), if for two strings $X$ and $Y$, $X \approx Y$ implies $|X| = |Y|$ and $X[i:j] \approx Y[i:j]$ for all $1 \le i \le j \le |X|$. In this paper, we propose an efficient parallel algorithm for pattern matching under any SCER using the"duel-and-sweep" paradigm. For a pattern of length $m$ and a text of length $n$, our algorithm runs in $O(ξ_m^\mathrm{t} \log^2 m)$ time and $O(ξ_m^\mathrm{w} \cdot n \log^2 m)$ work, with $O(τ_n^\mathrm{t} + ξ_m^\mathrm{t} \log^2 m)$ time and $O(τ_n^\mathrm{w} + ξ_m^\mathrm{w} \cdot m \log^2 m)$ work preprocessing on the Priority Concurrent Read Concurrent Write Parallel Random-Access Machines (P-CRCW PRAM).

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

↑