I have an outcome (O) which could have three states: octal 4, octal 2 or octal 1.
With three such outcomes I have 27 combinations.
The challenge is to find an algorithm which gives me the minimum number of combinations (NK) which always gives me minimum 2 of 3 states correct.
An example: The combinations 4-4-4 covers the following combinations: 4-4-4, 4-4-2, 4-2-4, 2-4-4, 4-4-1, 4-1-4, 1-4-4 given this requirement.
Mathematically this could be done with only 4 combinations, but how do I find them ???
(The total challenge covers 2-3 states and up til 12 outcomes).
it@61@sec
29
Junior Poster in Training
Recommended Answers
Jump to PostThis looks like it was kicked around before. Here's how I found the prior posts on this.
https://www.google.com/search?q=With+three+such+outcomes+I+have+27+combinations
Jump to Post"Permutations" and "combinations" have specific definitions in Combinatorics/Probability. 4-4-4 would not be a permutation since repeats are not allowed. Ditto combinations. Combinations are permutations where the order does not count, so 1-2-4 and 4-2-1 would be different permutations, but the same combination. Thus any formula taking an exponent to a …
Jump to PostGAMBAS, huh? Are you a student? Is this for a class? I'm not knocking BASIC, to each their own. However, in this case (and most cases), I believe C++ is the way to go. I see this type of problem as a combination of low-level C-type number manipulations and higher-level …
All 12 Replies
rproffitt
2,580
"Nothing to see here."
Moderator
it@61@sec
29
Junior Poster in Training
rproffitt
2,580
"Nothing to see here."
Moderator
it@61@sec
29
Junior Poster in Training
AssertNull
1,094
Practically a Posting Shark
rproffitt
commented:
Time for a little more doing (brute force would get it done.)
+12
it@61@sec
29
Junior Poster in Training
AssertNull
1,094
Practically a Posting Shark
rproffitt
commented:
"0.68 seconds sir. For an android, that is nearly an eternity." - Data
+0
it@61@sec
29
Junior Poster in Training
AssertNull
1,094
Practically a Posting Shark
AssertNull
1,094
Practically a Posting Shark
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
AssertNull
1,094
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.