Package com.treemap
Class PermutationGenerator
java.lang.Object
com.treemap.PermutationGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]generateNextPermutation(int[] temp, int n) static int[]generateNextProduct(int[] curr, int[] max) generatePermutations(List<T> list, int r) permutations(int n)
-
Constructor Details
-
PermutationGenerator
public PermutationGenerator()
-
-
Method Details
-
generatePermutations
-
permutations
-
generateNextProduct
public static int[] generateNextProduct(int[] curr, int[] max) -
generateNextPermutation
public static int[] generateNextPermutation(int[] temp, int n)
-