Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get the complement of a permutation
ResourceFunction["ComplementPermutation"][perm] returns the complement of the permutation perm. |
Find the complement of a permutation:
| In[1]:= |
| Out[1]= |
The complement of an alternating permutation is a reverse alternating permutation (a descent followed by alternating ascents and descents):
| In[2]:= |
| Out[2]= |
This work is licensed under a Creative Commons Attribution 4.0 International License