Possible combination of specific size

Click For Summary
SUMMARY

The discussion focuses on generating all possible combinations of a list of numbers with sizes ranging from 3 to 25. The user is currently utilizing nested for loops, which are inefficient due to the exponential increase in processing time as the number of loops grows. They seek code assistance in various programming languages, specifically Matlab, Mathematica, C, and Java, to optimize this combination generation process.

PREREQUISITES
  • Understanding of combinatorial algorithms
  • Familiarity with programming in Matlab, Mathematica, C, or Java
  • Knowledge of performance optimization techniques
  • Basic grasp of nested loops and their computational complexity
NEXT STEPS
  • Research efficient combination generation algorithms, such as backtracking or dynamic programming
  • Explore built-in functions for combinations in Matlab and Mathematica
  • Learn about the use of recursion in C and Java for combination generation
  • Investigate performance profiling tools to analyze and optimize code execution time
USEFUL FOR

This discussion is beneficial for software developers, data scientists, and anyone involved in algorithm design or optimization, particularly those working with combinatorial problems in programming languages like Matlab, Mathematica, C, and Java.

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 9 ·
Replies
9
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
8
Views
3K