Place n indistinguishable items into k distinguishable boxes

Michael Robertson mcrobertson at hotmail.com
Wed Feb 27 22:31:16 EST 2008


Michael Robertson wrote the following on 02/27/2008 06:40 PM:
> I need a generator which produces all ways to place n indistinguishable 
> items into k distinguishable boxes.

I found:

http://portal.acm.org/citation.cfm?doid=363347.363390

Do anyone know if there are better algorithms than this?



More information about the Python-list mailing list