Class Permutations

java.lang.Object
topics.backtracking.Permutations

public class Permutations extends Object
BACKTRACKING PROBLEM: PERMUTATIONS OF N ELEMENTS This program generates permutations of the integer elements that are in the vector v
Author:
vicegd
  • 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