Combinatorica Package >

NextPermutation

NextPermutation[p]
gives the permutation following in lexicographic order.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF