utilities topic
These are some basic utility functions probably provided in some way by your languages standard libraries, but designed and optimized for this library.
Classes
Functions
-
ojBinomial(
int n, int k) → int utilities - Binomial coefficient for 0 <= n <= 64, 0 <= k <= 64 using lookup table
-
ojNextCombination(
List< utilitiesint> a, int n) → bool - Generate all k-combinations of n cards
-
ojShuffle<
T> (List< utilitiesT> items) → void - Standard Fisher-Yates shuffle using our own PRNG.
-
ojSort<
T extends Comparable> (List< utilitiesT> a) → void - Heapsort somewhat optimized for small sets, like a hand of cards.