Lines Matching defs:scores
236 UV *scores;
242 Newx(scores, ( (x + 2) * (y + 2)), UV);
243 scores[0] = score_ceil;
244 scores[1 * (y + 2) + 0] = score_ceil;
245 scores[0 * (y + 2) + 1] = score_ceil;
246 scores[1 * (y + 2) + 1] = 0;
255 scores[(i+1) * (y + 2) + 1] = i;
256 scores[(i+1) * (y + 2) + 0] = score_ceil;
263 scores[1 * (y + 2) + (j + 1)] = j;
264 scores[0 * (y + 2) + (j + 1)] = score_ceil;
268 swapScore = scores[targetCharCount * (y + 2) + swapCount] + i - targetCharCount - 1 + j - swapCount;
271 scores[(i+1) * (y + 2) + (j + 1)] = MIN(swapScore,(MIN(scores[i * (y + 2) + j], MIN(scores[(i+1) * (y + 2) + j], scores[i * (y + 2) + (j + 1)])) + 1));
275 scores[(i+1) * (y + 2) + (j + 1)] = MIN(scores[i * (y + 2) + j], swapScore);
283 IV score = scores[(x+1) * (y + 2) + (y + 1)];
285 Safefree(scores);