Skip to content
Prev 82490 / 398506 Next

Finding all possible partitions of N units into k classe

On 09-Dec-05 Ingmar Visser wrote:
I would be interested in this too! From the name "nkpartitions"
it would seem that this function generates the ways of distributing
n items over k classes; and, in the context of Ales Ziberna's
original query, two such distributions are considered the same
if one can be obtained from the other by permuting classes.

This last consideration, in particular, is not trivial!

Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 09-Dec-05                                       Time: 10:05:13
------------------------------ XFMail ------------------------------