| Virgil.GRiffith:: An efficient algorithm for generating partitions of a set | [Changes] [Calendar] [Search] [Index] |
However, if you want to actually generate the partitions of n elements there are several algorithms for doing so. Below is a link to a hyper-efficient algorithm courtesy of Nicolas Chaumont. It's available at: http://code.google.com/p/consciousness/wiki/AlgorithmForGeneratingPartitions
Enjoy!
| (last modified 2011-11-07) [Login] |