Possible combination of specific size

In summary, the number of possible combinations for a specific size is determined by the size itself and the elements being combined, with a potential range of a few hundred to millions. To calculate the number of possible combinations, the formula n! / (r! * (n-r)!) is used, where n is the total number of elements and r is the size of the combination. Whether or not the same element can be used more than once in a combination depends on the specific problem or experiment. The size of the combination directly affects the number of possible combinations, with a larger size resulting in a greater number of combinations. There is no limit to the number of possible combinations for a specific size, but as the size and number of elements increase
  • #1
imdadullah
4
0
I have list of numbers like
3100002
11200002
11200011
12010011
12010020
20110002
20110101
21001020
21001110
30000300
100300020
.
.
.
.

I need all possible combinations of specific size depending on some conditions.
size of combination can vary from 3 to 25.

I am doing it with nested for loop but its time consuming as number of inner loop increases.

I need some code help related to this problem.
Code help can be for
Matlab
Mathematica
C
Java

Plz guide...
 
Physics news on Phys.org
  • #2
is there any expert to answer this.....
 

Related to Possible combination of specific size

1. How many possible combinations are there for a specific size?

The number of possible combinations for a specific size depends on the size itself and the elements that are being combined. It can range from a few hundred to millions.

2. How do you calculate the possible combinations for a specific size?

The formula for calculating the number of possible combinations is n! / (r! * (n-r)!), where n is the total number of elements and r is the size of the combination. For example, if you have 10 elements and want to find all possible combinations of size 3, the calculation would be 10! / (3! * (10-3)!) = 120.

3. Can the same element be used more than once in a combination of a specific size?

It depends on the rules of the specific problem or experiment. In some cases, the same element can be used more than once in a combination, while in others it cannot. This should be clarified before calculating the possible combinations.

4. How does the size of the combination affect the number of possible combinations?

The size of the combination directly affects the number of possible combinations. As the size increases, the number of possible combinations also increases. For example, the number of possible combinations for a size of 3 will be less than the number of possible combinations for a size of 4 using the same set of elements.

5. Is there a limit to the number of possible combinations for a specific size?

There is no limit to the number of possible combinations for a specific size, as it depends on the number of elements being combined. However, as the size and number of elements increase, the number of possible combinations can become extremely large and difficult to calculate or represent.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • Programming and Computer Science
Replies
8
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
Back
Top