A set of of n elements can be partitioned in non empty subsets.
This package provide function to list all possible partitions. The number of partition is Bell's number.
The number of subsets that composed the partitions can be optionally specified. The number of partition is Stirling's number of the second kind.
Bruno Luong (2022). Set partition (https://www.mathworks.com/matlabcentral/fileexchange/24133-set-partition), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!