Description Usage Arguments Value See Also Examples
This function calculates the matrix with Longest Common Subsequence (LCS) between two numeric vectors. From given matrix we can locate the size of the Longest Common Subsequence in the last column in the last row.
1 | pairwiseLCS(x, y)
|
x |
an integer vector |
y |
an integer vector |
a matrix computed using dynamic programming that stores the Longest Common Subsequence (LCS) between two vectors A and B.
runibic
calculateLCS
backtrackLCS
1 2 3 | A <- c(1, 2, 3, 4, 5)
B <- c(1, 2, 4)
pairwiseLCS(A, B)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.