Possible combination of specific size

AI Thread Summary
The discussion revolves around generating all possible combinations of a list of numbers, with the combination size varying from 3 to 25, based on specific conditions. The user is currently using nested for loops to achieve this but finds it time-consuming as the number of inner loops increases. They are seeking code assistance for implementing this in various programming languages, including Matlab, Mathematica, C, and Java. The focus is on optimizing the combination generation process to improve efficiency.
imdadullah
Messages
4
Reaction score
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
is there any expert to answer this.....
 

Similar threads

Replies
3
Views
3K
Replies
5
Views
1K
Replies
12
Views
3K
Replies
3
Views
4K
Replies
3
Views
2K
Replies
2
Views
2K
Back
Top