Suppression of "6 numbers" limit. New option to choose tree type.

This commit is contained in:
2021-01-28 11:01:29 +01:00
parent 9ee0453611
commit 26dc599d88
6 changed files with 81 additions and 36 deletions

9
best.c
View File

@@ -43,8 +43,13 @@ int check_best(res, nops, node, values, ops)
if (diff < bestdiff || (diff == bestdiff && nops < bestops)) {
//best=res;
// clear old bests
for (i=0; i<nbests; ++i)
free_node(bests[i].root);
for (i=0; i<nbests; ++i) {
found=free_node(bests[i].root);
# ifdef DEBUG_TREE
printf("check_best: freed %d nodes\n", found);
# endif
}
bestdiff=diff;
bestops=nops;
nbests=0;