Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Prune non-minimal subsets from a list of subsets
ResourceFunction["MinimalSubsets"][list] prunes non-minimal subsets from the sets in list. |
Here is a list of sets:
In[1]:= |
Out[1]= |
Remove the non-minimal subsets, which are {a,b,c} and {a,b,e}:
In[2]:= |
Out[2]= |
MinimalSubsets can handle a large list of subsets:
In[3]:= |
The number of minimal subsets:
In[4]:= |
Out[4]= |
This work is licensed under a Creative Commons Attribution 4.0 International License