public class Unranking
extends java.lang.Object
| Constructor and Description |
|---|
Unranking() |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
unrankCombination(int n,
int k,
java.math.BigInteger count,
java.math.BigInteger index)
/**
Unranks the combination with the given BigInteger index.
|
static int[] |
unrankCombination(int n,
int k,
long count,
long index)
Unranks the combination with the given long index.
|
public static int[] unrankCombination(int n,
int k,
long count,
long index)
n - the total number of elements in the setk - the number of elements takencount - the number of k-combinationsindex - the index of the combination to be unrankedpublic static int[] unrankCombination(int n,
int k,
java.math.BigInteger count,
java.math.BigInteger index)
n - the total number of elements in the setk - the number of elements takencount - number of k-combinationsindex - the index of the combination to be unranked