|
SOLUTIONS
|
MATHEMATICA 組込みシンボル
LongestCommonSequence
LongestCommonSequence[s1, s2]
文字列あるいはリスト
と
に共通の,連続あるいは不連続の要素の最長の共通配列を求める.
詳細とオプション詳細とオプション
- LongestCommonSequenceは非連続部分を連結させた最長共通配列を返す.
- 長さが同じ最長共通配列が複数ある場合,LongestCommonSequenceは
の先頭に最も近いものを返す. - 文字列の場合,IgnoreCase->Trueとすると,LongestCommonSequenceは大文字小文字を同等に扱い,
にある形で共通配列を返す.
バージョン 7 の新機能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
