LongestCommonSubsequence

LongestCommonSubsequence[s1,s2]

找出字符串、生物分子序列或列表 s1s2 中由相邻元素组成的最长公共子序列.

更多信息和选项

范例

打开所有单元关闭所有单元

基本范例  (3)

求两个字符串共有的最长连续子序列:

找出两个列表共有的最长的连续子序列:

求两个生物分子序列共有的最长连续子序列:

应用  (1)

两个基因的最长连续 DNA 子序列:

巧妙范例  (1)

在长度为 1000 的随机二进制序列中,求出最长的共同子序列的长度:

Wolfram Research (2008),LongestCommonSubsequence,Wolfram 语言函数,https://reference.wolfram.com/language/ref/LongestCommonSubsequence.html (更新于 2020 年).

文本

Wolfram Research (2008),LongestCommonSubsequence,Wolfram 语言函数,https://reference.wolfram.com/language/ref/LongestCommonSubsequence.html (更新于 2020 年).

CMS

Wolfram 语言. 2008. "LongestCommonSubsequence." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2020. https://reference.wolfram.com/language/ref/LongestCommonSubsequence.html.

APA

Wolfram 语言. (2008). LongestCommonSubsequence. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/LongestCommonSubsequence.html 年

BibTeX

@misc{reference.wolfram_2024_longestcommonsubsequence, author="Wolfram Research", title="{LongestCommonSubsequence}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/LongestCommonSubsequence.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_longestcommonsubsequence, organization={Wolfram Research}, title={LongestCommonSubsequence}, year={2020}, url={https://reference.wolfram.com/language/ref/LongestCommonSubsequence.html}, note=[Accessed: 22-November-2024 ]}