Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get the next subset of a given set in lexicographic order
ResourceFunction["NextLexicographicSubset"][l,s] gives the lexicographic successor of subset s of set l. |
Get the next lexicographic subset of {1,2,3} after the subset {1,2}:
In[1]:= |
Out[1]= |
Show all subsets of {1,2,3} in lexicographic order:
In[2]:= |
Out[2]= |
This work is licensed under a Creative Commons Attribution 4.0 International License