Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get k-subsets of a given set in minimum change order
ResourceFunction["GrayCodeKSubsets"][l,k] generates k-subsets of l in Gray code order. |
Get 4-subsets in Gray code order:
In[1]:= |
Out[1]= |
This work is licensed under a Creative Commons Attribution 4.0 International License