Message144267
> Balls-in-boxes _is_ one of the most basic of the canonical combinatorial problems.
Agreed. But in its basic form, this is covered by itertools.combinations, isn't it? It may be worth a doc recipe showing how to use itertools.combinations for this (especially since the naive implementation---e.g., the one I posted on comp.lang.python, doesn't get boundary cases right). |
|
Date |
User |
Action |
Args |
2011-09-19 13:14:47 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, terry.reedy, cvrebert, Phillip.M.Feldman@gmail.com, Phillip.M.Feldman |
2011-09-19 13:14:47 | mark.dickinson | set | messageid: <1316438087.03.0.0652753464233.issue12961@psf.upfronthosting.co.za> |
2011-09-19 13:14:46 | mark.dickinson | link | issue12961 messages |
2011-09-19 13:14:45 | mark.dickinson | create | |
|