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

13
lceb.c
View File

@@ -154,19 +154,20 @@ int main(ac, av)
stacksize=ac-optind-1;
nops=stacksize-1;
gen_combinations(nops);
ncombs=n_combs();
for (i=optind+1; i<ac; ++i) {
val=atoi(av[i]);
push_stack(&inputstack, val);
}
gen_stacks(&inputstack);
gen_combinations(nops);
ncombs=n_combs();
if (treetype==TREE_CATALAN) {
gen_tree(intarray, nops, 0, 0);
gen_tree(intarray, nops, 0, 0, 0);
} else {
gen_reduced_trees(nops);
gen_tree(intarray, nops, 0, 0, 1);
//gen_reduced_trees(nops);
}
set_target(target);
set_intr();