Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Construct the permutation list corresponding to the given inversion vector
ResourceFunction["FromInversionVector"][vect] constructs the permutation list corresponding to the inversion vector vect. |
Here is the inversion vector of a permutation:
In[1]:= |
Out[1]= |
This gives back the permutation:
In[2]:= |
Out[2]= |
Here are all six permutation of {1,2,3}:
In[3]:= |
Out[3]= |
Here are the corresponding inversion vectors:
In[4]:= |
Out[4]= |
The round trip works:
In[5]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License