|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbabase.ranker.Permuter
public class Permuter
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.
| 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 |
|---|
public int level
public int N
public int[] Value
public java.util.Vector<int[]> permutations
| Constructor Detail |
|---|
public Permuter()
| Method Detail |
|---|
public java.util.Vector permute(int n)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||