AllPartitions( S )

Get all partitions of a set
21 Downloads
Updated 3 May 2017

View License

Based on Donals Knuth's fascicle 3b (Algorithm H):
http://www-cs-faculty.stanford.edu/~knuth/fasc3b.ps.gz
% Generates all partiions of a given set
% Input S is the set as cell array
% Output PI is a cell array with the partitions
% Output RGS are the visited restricted growth strings

Cite As

Paulo Abelha (2024). AllPartitions( S ) (https://www.mathworks.com/matlabcentral/fileexchange/62775-allpartitions-s), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Large Files and Big Data in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0