arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2110.13802cs.DScs.DB
收藏

线性近似模式匹配算法

Linear Approximate Pattern Matching Algorithm

Anas Al-okaily, Abdelghani Tbakhi

摘要:

模式匹配是几乎所有科学领域的基本过程。这个问题涉及到在一个参考数据流(通常是很长的)中找到一个给定模式(通常是很短的)的位置。匹配可以是精确的或近似的(不精确的)。精确匹配是在不允许模式中的一个或多个字符的不匹配(或插入和删除)的情况下搜索模式,而近似匹配则相反。为了精确匹配,可以在线性时间和空间中构建的几种数据结构被使用,并且现在在实践中。对于近似匹配,为解决该匹配而提出的解决方案是非线性的并且目前是不切实际的。在本文中,我们设计并实现了一个结构,可以内置的线性时间和空间($O(n)$),并解决了近似匹配问题的$O(m + \frac {log_2n {(log_Σn)} ^{k+1}}{k!} + occ)$搜索成本,其中$m$是模式的长度,$n$是引用的长度,和$k$是容忍的不匹配(和插入和删除)的数量。

英文摘要:

Pattern matching is a fundamental process in almost every scientific domain. The problem involves finding the positions of a given pattern (usually of short length) in a reference stream of data (usually of large length). The matching can be an exact or as an approximate (inexact). Exact matching is to search for the pattern without allowing for mismatches (or insertions and deletions) of one or more characters in the pattern), while approximate matching is the opposite. For exact matching, several data structures that can be built in linear time and space are used and in practice nowadays. For approximate matching, the solutions proposed to solve this matching are non-linear and currently impractical. In this paper, we designed and implemented a structure that can be built in linear time and space ($O(n)$) and solves the approximate matching problem in $O(m + \frac {log_2n {(log_Σn)} ^{k+1}}{k!} + occ)$ search costs, where $m$ is the length of the pattern, $n$ is the length of the reference, and $k$ is the number of tolerated mismatches (and insertion and deletions).

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

↑