Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #13101 > unrolled thread
| Started by | Chris Rebert <clp2@rebertia.com> |
|---|---|
| First post | 2011-09-10 19:18 -0700 |
| Last post | 2011-09-10 19:18 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: recursive algorithm for balls in numbered boxes Chris Rebert <clp2@rebertia.com> - 2011-09-10 19:18 -0700
| From | Chris Rebert <clp2@rebertia.com> |
|---|---|
| Date | 2011-09-10 19:18 -0700 |
| Subject | Re: recursive algorithm for balls in numbered boxes |
| Message-ID | <mailman.963.1315707530.27778.python-list@python.org> |
On Sat, Sep 10, 2011 at 5:43 PM, Dr. Phillip M. Feldman <Phillip.M.Feldman@gmail.com> wrote: > I've written a recursive class that creates an iterator to solve a general > formulation of the combinatorics problem known as "balls in numbered boxes" > (also known as "indistinguishable balls in distinguishable boxes"). The > code has been extensively tested and appears to work, but isn't terribly > elegant. Any suggestions about how to improve it will be appreciated. Significantly refactored (but untested) version: https://gist.github.com/1209079 Cheers, Chris -- http://rebertia.com
Back to top | Article view | comp.lang.python
csiph-web