combinatorics: Functions for combinatorics¶
Functions for combinatorics (combinations with repetitions, derangements, etc.)
Functions¶
|
|
|
Yield all combinations of the elements of seq :rtype: |
|
compute permutations of seq where each element is not in its original position |
|
Distance between seq and a sorted seq. |
|
Return a permutation of xs with a min. |
|
Calculate the distance between a sorted seq. |
|
Return an array of of ints from 0 to length-1, in random order |
|
Generate a permutation of xs unsorted according to the given entropy. |
|
|
|
The entropy of the ordering in this seq. |