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

枚举两个字符串的最大公共子序列的高效算法

Efficient algorithms for enumerating maximal common subsequences of two strings

Miyuji Hirota, Yoshifumi Sakai

AI总结:

本研究针对两字符串最大公共子序列枚举问题,提出三种不同时空复杂度的高效算法,分别适配不同的资源与输出效率需求,部分结构还支持条件式MCS检索。

摘要:

我们提出了用于枚举两个字符串的最大公共子序列(maximal common subsequences, MCSs)的高效算法,通过预处理时间、空间和延迟时间复杂度来评估算法的效率。一种算法以三次时间构建三次空间的数据结构,以线性时间输出每个MCS,该数据结构无需显式枚举即可搜索满足特定条件的MCS。另一种算法以二次时间构建二次空间的数据结构,以线性时间输出每个MCS;还有一种算法以二次时间构建线性空间的数据结构,以线性对数时间输出每个MCS。

英文摘要:

We propose efficient algorithms for enumerating maximal common subsequences (MCSs) of two strings. Efficiency of the algorithms are estimated by the preprocessing-time, space, and delay-time complexities. One algorithm prepares a cubic-space data structure in cubic time to output each MCS in linear time. This data structure can be used to search for particular MCSs satisfying some condition without performing an explicit enumeration. Another prepares a quadratic-space data structure in quadratic time to output each MCS in linear time, and the other prepares a linear-space data structure in quadratic time to output each MCS in linearithmic time.

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

↑