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

DTW距离下的模式匹配

Pattern matching under DTW distance

Garance Gourdel, Anne Driemel, Pierre Peterlongo, Tatiana Starikovskaya

摘要:

在这项工作中,我们考虑动态时间规整(DTW)距离下的模式匹配的问题,潜在的应用在分析生物数据产生的第三代测序的动机。为了测量两个字符串之间的DTW距离,必须将它们“扭曲”,即将字符串中的某些字母加倍以获得两个等长字符串,然后将相应位置的字母之间的距离相加。当字母之间的距离是整数时,我们证明了对于m次运行的模式P和n次运行的文本T:1。有一个O(m + n)时间的算法,它计算从P到T的DTW距离最多为1的所有位置; 2.有一个O(kmn)时间算法,它计算从P到T的DTW距离最多为k的所有位置。作为第二个结果的推论,我们还导出了字母表上一般度量的近似算法。

英文摘要:

In this work, we consider the problem of pattern matching under the dynamic time warping (DTW) distance motivated by potential applications in the analysis of biological data produced by the third generation sequencing. To measure the DTW distance between two strings, one must "warp" them, that is, double some letters in the strings to obtain two equal-lengths strings, and then sum the distances between the letters in the corresponding positions. When the distances between letters are integers, we show that for a pattern P with m runs and a text T with n runs: 1. There is an O(m + n)-time algorithm that computes all locations where the DTW distance from P to T is at most 1; 2. There is an O(kmn)-time algorithm that computes all locations where the DTW distance from P to T is at most k. As a corollary of the second result, we also derive an approximation algorithm for general metrics on the alphabet.

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

↑