public class LongestCommonSubsequence extends AbstractEditDistance
| ls(i-1,j-1) + 1, if a[i]=b[j] ls(i,j) = | | max(ls(i-1,j), ls(i,j-1)), else Boundary conditions: let think that ls[i][-1] = 0, ls[-1][j] = 0
Constructor and Description |
---|
LongestCommonSubsequence() |
Modifier and Type | Method and Description |
---|---|
int |
compute(java.lang.String a,
java.lang.String b) |
boolean |
isFailFast() |
double |
normalize(int distance,
java.lang.String source,
java.lang.String target) |
void |
setFailThreshold(double threshold) |
computeNormalized