Note that there are some explanatory texts on larger screens.

plurals
  1. POPool numbers in a set of numbers to match the size of another set
    primarykey
    data
    text
    <p>I need to reduce the size of a set by combining the numbers in it. I need all possible combinations. Here are two examples that might illustrate my situation. </p> <p>1) Set1 has 4 entries and Set2 has 2. So we need to combine two numbers in each case. </p> <pre><code>Set1 = {70, 100, 50, 200}; Set2 = {"part1", "part2"} All combinations I want to retrive should look like following: "part1" |"part2" 70 + 100 | 50 + 200 70 + 50 | 100 + 200 70 + 200 | 50 + 100 100 + 50 | 70 + 200 100 + 200 | 50 + 70 50 + 200 | 100 + 70 50 | 70 + 100 + 200 70 | 50 + 100 + 200 100 | 50 + 70 + 200 200 | 50 + 70 + 100 70 + 100 + 200 | 50 50 + 100 + 200 | 70 50 + 70 + 200 | 100 50 + 70 + 100 | 200 </code></pre> <p>2) Set1 has 4 entries and Set2 has 3. So we need to combine two numbers just once.</p> <pre><code>Set1 = {70, 100, 50, 200}; Set2 = {"part1", "part2", "part3"} All combinations I want to retrive should look like following: "part1" |"part2" |"part3" 70 | 100 | 50 + 200 70 | 50 | 100 + 200 70 | 200 | 50 + 100 50 | 70 | 100 + 200 50 | 100 | 70 + 200 50 | 200 | 70 + 100 100 | 70 | 50 + 200 100 | 200 | 50 + 70 100 | 50 | 200 + 70 200 | 70 | 50 + 100 200 | 100 | 50 + 70 200 | 50 | 70 + 100 70 | 50 + 200 | 100 70 | 100 + 200 | 50 70 | 50 + 100 | 200 50 | 100 + 200 | 70 50 | 200 + 70 | 100 50 | 70 + 100 | 200 100 | 50 + 200 | 70 100 | 50 + 70 | 200 100 | 200 + 70 | 50 200 | 50 + 100 | 70 200 | 50 + 70 | 100 200 | 70 + 100 | 50 50 + 200 | 100 | 70 100 + 200 | 50 | 70 50 + 100 | 200 | 70 100 + 200 | 70 | 50 70 + 200 | 100 | 50 70 + 100 | 200 | 50 50 + 200 | 70 | 100 50 + 70 | 200 | 100 200 + 70 | 50 | 100 50 + 100 | 70 | 200 50 + 70 | 100 | 200 70 + 100 | 50 | 200 </code></pre> <p>I appreciate any help. I cannot think of any words to explain my concern better. But I will be very happy to answer any question. With you help I might be able to substantiate my question. Although the application is written in C# i don't necessarily need source code. My problem is rather the concept than the implementation.</p> <p>THANKS in advance!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload