AllPartitions( S )

Get all partitions of a set

You are now following this Submission

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 (2026). AllPartitions( S ) (https://uk.mathworks.com/matlabcentral/fileexchange/62775-allpartitions-s), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0