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

LCS评分的动态所有评分矩阵

Dynamic all scores matrices for LCS score

Amir Carmel, Dekel Tsur, Michal Ziv-Ukelson

摘要:

对齐两个字符串A、B以确定它们的相似性的问题是模式匹配领域中的基本问题。这个领域中的一个重要概念是“所有得分矩阵”,它对两个字符串的局部比对比较进行编码。即,令K表示包含B的每个子串与A的对齐得分的所有得分矩阵,令J表示包含B的每个后缀与A的每个前缀的对齐得分的所有得分矩阵。在本文中,我们考虑的问题,保持所有的分数矩阵的评分函数是LCS分数,同时支持单个字符的前置和附加操作的A和N。我们的算法利用稀疏参数L=LCS(A,B)和Delta = |B| -L。对于矩阵K,我们提出了一个算法,支持增量操作的两端A在O(德尔塔)的时间。而对于矩阵J,我们提出了一个算法,支持一种类型的增量操作,无论是一个prepend操作A或一个append操作B,在O(L)的时间。这个结构也可以扩展到同时支持两个操作,时间复杂度为O(LloglogL)。

英文摘要:

The problem of aligning two strings A,B in order to determine their similarity is fundamental in the field of pattern matching. An important concept in this domain is the "all scores matrix" that encodes the local alignment comparison of two strings. Namely, let K denote the all scores matrix containing the alignment score of every substring of B with A, and let J denote the all scores matrix containing the alignment score of every suffix of B with every prefix of A. In this paper we consider the problem of maintaining an all scores matrix where the scoring function is the LCS score, while supporting single character prepend and append operations to A and N. Our algorithms exploit the sparsity parameters L=LCS(A,B) and Delta = |B|-L. For the matrix K we propose an algorithm that supports incremental operations to both ends of A in O(Delta) time. Whilst for the matrix J we propose an algorithm that supports a single type of incremental operation, either a prepend operation to A or an append operation to B, in O(L) time. This structure can also be extended to support both operations simultaneously in O(L log log L) time.

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

↑