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 (2025). AllPartitions( S ) (https://nl.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 LinuxCategories
      Find more on Large Files and Big Data in Help Center and MATLAB Answers
    
  Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | 
