Trees | Indices | Help |
|
---|
|
Find different permutations of an array.
Functions | |||
|
|||
|
|||
|
Variables | |
__package__ =
|
Imports: Num
Function Details |
Finds the first valid permutation of n items after a. A valid permutation is an array of length n which contains values from 0 to n-1, once each. This function returns the lexicographically next permutation; it's input need not be a valid permutation, but all the entries of a should be in the range 0 to n-1, inclusive. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 22 04:25:02 2011 | http://epydoc.sourceforge.net |