Differences From Artifact [e70f6ede55]:
- File gc_core/js/str_transform.js — part of check-in [1ef26c175b] at 2017-11-08 13:32:59 on branch spellsugg — [core][js] ibdawg: suggest (adaptation from Python code) (user: olr, size: 2684) [annotate] [blame] [check-ins using] [more...]
To Artifact [9dddadeae1]:
- File gc_core/js/str_transform.js — part of check-in [fbf59c7547] at 2017-11-22 14:57:05 on branch trunk — [core] ibdawg: bug fixed and code cleaning (user: olr, size: 2623) [annotate] [blame] [check-ins using]
︙ | |||
30 31 32 33 34 35 36 | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | - | matrix[i-1][j-1] + nCost // Substitution ); if (i > 1 && j > 1 && s1[i] == s2[j-1] && s1[i-1] == s2[j]) { matrix[i][j] = Math.min(matrix[i][j], matrix[i-2][j-2] + nCost); // Transposition } } } |
︙ |