Class Permutations
java.lang.Object
topics.backtracking.Permutations
BACKTRACKING PROBLEM: PERMUTATIONS OF N ELEMENTS
This program generates permutations of the
integer elements that are in the vector v
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintGets the number of permutations after the backtracking process
-
Constructor Details
-
Permutations
public Permutations(int n) Constructor for Permutations objects- Parameters:
n- Number of elements for each permutation
-
-
Method Details
-
backtracking
public void backtracking() -
getNumberOfPermutations
public int getNumberOfPermutations()Gets the number of permutations after the backtracking process- Returns:
- Number of permutations
-