\datethis @*Intro. Given $n$, generate BDDL to compute a representation of all restricted growth sequences $a_1\ldots a_n$ (and thus of all set partitions of $\{1,\ldots,n\}$). @d maxn 500 @c #include #include int n; int subscr[maxn+1][maxn]; /* allocation of variable subscripts */ main(int argc, char*argv[]) { register int i,j,k; if (argc!=2 || sscanf(argv[1],"%d",&n)!=1 || n<=0) { fprintf(stderr,"Usage: %s n\n",argv[0]); exit(-1); } printf("# beginning the output of BDDL-RGROWTH %d\n",n); for (i=0,k=n;k;k--) for (j=0;j