Update: avoiding most of the memory usage:
That's perfect. Thankyou.
It generates the 462 of my bastard testcase instantly:
C:\test>1149981-gf -cards=12 -holes=7 | wc -l 462
I'll probably try and turn it into an iterator once my brain's in gear; but the algorithm is spot on. Thanks again.
In reply to Re^2: Combinatorics problem.
by BrowserUk
in thread Combinatorics problem. (Updated with more info.)
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |