Package com.almworks.integers
Class LongLongestCommonSubsequence
java.lang.Object
com.almworks.integers.LongLongestCommonSubsequence
- Author:
- Igor Sereda Copied from IntLongestCommonSequence.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.almworks.integers.LongListgetLCS(com.almworks.integers.LongList aseq, com.almworks.integers.LongList bseq) static com.almworks.integers.LongListgetLCS(com.almworks.integers.LongList aseq, com.almworks.integers.LongList bseq, boolean tryOptimize) static com.almworks.integers.LongListgetLcsForPermutation(com.almworks.integers.LongList aseq, com.almworks.integers.LongList bseq) contract: aseq shouldn't contain duplicates and bseq should be permutation of aseq.
-
Method Details
-
getLcsForPermutation
public static com.almworks.integers.LongList getLcsForPermutation(com.almworks.integers.LongList aseq, com.almworks.integers.LongList bseq) contract: aseq shouldn't contain duplicates and bseq should be permutation of aseq.- Parameters:
aseq- list without duplicatesbseq- list without duplicates- Returns:
- longest common subsequence for
aseqandbseq
-
getLCS
public static com.almworks.integers.LongList getLCS(com.almworks.integers.LongList aseq, com.almworks.integers.LongList bseq) -
getLCS
public static com.almworks.integers.LongList getLCS(com.almworks.integers.LongList aseq, com.almworks.integers.LongList bseq, boolean tryOptimize)
-