IMPROVES-i3 both empties are equal (ratio 1.0)
This commit is contained in:
@@ -82,8 +82,10 @@ static float shit11(char *s1, char *s2)
|
||||
len1 = strlen(s1);
|
||||
len2 = strlen(s2);
|
||||
|
||||
if(len1 == 0 && len2 == 0)
|
||||
return 1.0; /* both empty == identical */
|
||||
if(len1 == 0 || len2 == 0)
|
||||
return 0.0;
|
||||
return 0.0; /* one empty == no similarity */
|
||||
|
||||
int d[len1+1][len2+1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user