Lines Matching refs:row2
22 * row2 holds the current row, row1 the previous row (i.e. for the substring
25 * In other words, at the start of the big loop, row2[j + 1] contains the
50 int *row2 = malloc(sizeof(int) * (len2 + 1));
58 row2[0] = (i + 1) * d;
61 row2[j + 1] = row1[j] + s * (string1[i] != string2[j]);
65 row2[j + 1] > row0[j - 1] + w)
66 row2[j + 1] = row0[j - 1] + w;
68 if (row2[j + 1] > row1[j + 1] + d)
69 row2[j + 1] = row1[j + 1] + d;
71 if (row2[j + 1] > row2[j] + a)
72 row2[j + 1] = row2[j] + a;
77 row1 = row2;
78 row2 = dummy;
84 free(row2);