org.metasyntactic.math
Class Counting
java.lang.Object
|
+--org.metasyntactic.math.Counting
- public class Counting
- extends java.lang.Object
Method Summary |
static java.math.BigInteger |
choose(long n,
long k)
Intelligent memorysensitive method to calculate n choose k |
static java.math.BigInteger |
factorial(long n)
|
static java.math.BigInteger |
factorial(long n,
long k)
|
static void |
main(java.lang.String[] args)
|
static Set |
permutation(Set set)
|
static Set |
permutation(Set set,
int k)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Counting
public Counting()
permutation
public static Set permutation(Set set)
permutation
public static Set permutation(Set set,
int k)
main
public static void main(java.lang.String[] args)
choose
public static java.math.BigInteger choose(long n,
long k)
- Intelligent memorysensitive method to calculate n choose k
factorial
public static java.math.BigInteger factorial(long n)
factorial
public static java.math.BigInteger factorial(long n,
long k)