|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.mrupp.isoak1.Permutations
public class Permutations
Permutation related functions. Provides static methods for the computation of all permutations of a given size, all prefixes of given length of permutations of a given size, etc.
Constructor Summary | |
---|---|
Permutations()
All functionality is provided via static methods, so there is no need to construct objects of this type. |
Method Summary | |
---|---|
static int[][] |
permutations(int n)
All permutations of {0,1,...,n-1}. |
static int[][] |
prefixes(int k,
int n)
All prefixes of given length of all permutations of given length. |
static int[][] |
prefixesPrecomputed(int k,
int n)
Precomputed prefixes of given length of permutations of given length. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Permutations()
Method Detail |
---|
public static int[][] permutations(int n)
n
- permutation size.
public static int[][] prefixes(int k, int n)
k
- prefix length.n
- permutation size.
public static int[][] prefixesPrecomputed(int k, int n)
k
- prefix length.n
- permutation size.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |