babase.ranker
Class Permuter

java.lang.Object
  extended by babase.ranker.Permuter

public class Permuter
extends java.lang.Object

Class created to create all permutations of numbers from 1 to n. Ex: for n = 2, the permuter wold return a vector containing 1,2 and 2,1 which would be all of the valid permutations of the numbers from 1 to 2.

Author:
tjb13

Field Summary
 int level
           
 int N
           
 java.util.Vector<int[]> permutations
           
 int[] Value
           
 
Constructor Summary
Permuter()
           
 
Method Summary
 java.util.Vector permute(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

level

public int level

N

public int N

Value

public int[] Value

permutations

public java.util.Vector<int[]> permutations
Constructor Detail

Permuter

public Permuter()
Method Detail

permute

public java.util.Vector permute(int n)