PAB said:Do you Mean that you want ALL Combinations of 6 Numbers from 10 Numbers. That will give you a Total of 210 Combinations.
All the Best.
PAB
![]()
thornc said:I would say that an explanation to why it is useful might be in order also!
PAB said:If you are Saying that you want a Set of 6 Number Combinations from 10 Selected Numbers so that EACH Number does NOT Appear More Than 4 Times in 18 Combinations, it is NOT Possible.
If you Multiply the 10 Numbers that will be in your Selection by 4, Being the Maximum Number of Times you want EACH Number to Appear Overall, that Equals 40 Numbers. Now Because you want 6 Number Combinations you Divide the 40 Numbers by 6 which Equals 6.67 Combinations. Therefore there would be a Maximum of 7 Combinations Needed to be Played to Accomodate your Criteria. BUT, this Means that there MUST be 4 Numbers that will Appear MORE than the 4 Times you Specify.
I Hope this Helps.
All the Best.
PAB
![]()
PAB said:If you are Saying that you want a Set of 6 Number Combinations from 10 Selected Numbers so that EACH Number does NOT Appear More Than 4 Times in 18 Combinations, it is NOT Possible.
If you Multiply the 10 Numbers that will be in your Selection by 4, Being the Maximum Number of Times you want EACH Number to Appear Overall, that Equals 40 Numbers. Now Because you want 6 Number Combinations you Divide the 40 Numbers by 6 which Equals 6.67 Combinations, the 0.67 Being the Remaining 4 Numbers. Therefore there would be a Maximum of 7 Combinations Needed to be Played to Accomodate your Criteria. BUT, this Means that there MUST be 2 Numbers that will Appear MORE than the 4 Times you Specify.
I Hope this Helps.
All the Best.
PAB
![]()
PAB said:If you are Saying that you want a Set of 6 Number Combinations from 10 Selected Numbers so that EACH Number does NOT Appear More Than 4 Times in 18 Combinations, it is NOT Possible.
If you Multiply the 10 Numbers that will be in your Selection by 4, Being the Maximum Number of Times you want EACH Number to Appear Overall, that Equals 40 Numbers. Now Because you want 6 Number Combinations you Divide the 40 Numbers by 6 which Equals 6.67 Combinations, the 0.67 Being the Remaining 4 Numbers. Therefore there would be a Maximum of 7 Combinations Needed to be Played to Accomodate your Criteria. BUT, this Means that there MUST be 2 Numbers that will Appear MORE than the 4 Times you Specify.
I Hope this Helps.
All the Best.
PAB
![]()
Freehand said:Hi PAB,
I have one more simpler explanation:
I want source code for generation very fast possible random combinations for "n,k" but filtering collection of (n,k) combinations such have no more than 4 elements in common?
It sees this example:
C 10,6 = 210 FULL
But, filtering C 10,6 with maximum 4 elements in common = 18
01 02 03 04 05 06
01 02 03 04 07 08
01 02 03 04 09 10
01 02 03 05 07 09
01 02 03 05 08 10
01 02 03 06 07 10
01 02 03 06 08 09
01 02 04 05 07 10
01 02 04 05 08 09
01 02 04 06 07 09
01 02 04 06 08 10
01 02 05 06 07 08
01 02 05 06 09 10
01 02 07 08 09 10
03 04 05 06 07 08
03 04 05 06 09 10
03 04 07 08 09 10
05 06 07 08 09 10
Thanks
hot4 said:Is that you want a 5if6 cover? Or a 5if5? I presume it's a 5if6, that means if 6 numbers are drawn from your 10, you'll hit 5; that wheel allows repeating 4 numbers.
hot4 said:Is that you want a 5if6 cover? Or a 5if5? I presume it's a 5if6, that means if 6 numbers are drawn from your 10, you'll hit 5; that wheel allows repeating 4 numbers.