Compare commits

1 Commits

Author SHA1 Message Date
GotPPay
acb2d6dbba algorithm fix 2017-10-31 16:36:33 +01:00

View File

@@ -257,6 +257,7 @@ function MakePairsV3(callback){
tree = [];
done=false;
while(max_pairs>0){
for (let i=0;i<names.length;i++){
for (let j=0;j<=i;j++){
if (matrix[i][j] === 0){
@@ -266,6 +267,11 @@ function MakePairsV3(callback){
}
if (done) break;
}
if (done) break;
max_pairs--;
}
let max_count_index = 0;