Hello I need to analyze around 50,063,860 combinations for my fantasy roster. It's 60 pick 6.
I am trying to generate all possible combinations passing the names array to the Math_Combinatorics pearl library:
$n is an array of 60 elements,
$result = $combinatorics->combinations( $n, 6);
Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 72 bytes) in /usr/share/php/Math/Combinatorics.php on line 126
Is there anyway to allocate more memory or feed it less entries at one time so it does not crash?