Set partitions generator

This online calculator generates all possible partitions of a given set.

This online calculator can generate all set partitions for a given set. A partition of a set is a grouping of the set's elements into non-empty subsets, in such a way that every element is included in exactly one subset. Thus, the union of the subsets is equal to the original set, and the intersection of any two subsets is the empty set.

Please note that generation of all partitions is combinatorial task, and a number of all possible partitions grows very rapidly with the size of a set. In fact, this number is pre-calculated and is knows as the Bell number. Thus, for a set of size 6, the Bell number is 203, and the Bell number for the set of size 12 is 4213597. For more Bell numbers you can check out the Bell triangle calculator.

The algorithm is based on enumeration algorithm for restricted growth strings aka restricted growth functions. For more information, check out Restricted Growth Strings Generator. Since partitions generation is done inside your browser, be cautious with big sets - you probably would not want to add more than 10 elements in a set, unless you have really good computer.

PLANETCALC, Set partitions generator

Set partitions generator


Items per page:

URL copied to clipboard
Creative Commons Attribution/Share-Alike License 3.0 (Unported) PLANETCALC, Set partitions generator