Hello,
I am trying to find out an alternate way to brute-force a variable
length vector with different variable length contents.
int chromossome[MAX_VECTOR_LENG TH]
int max_value_for_e ach_chromossome[MAX_VALUES]
The only way I am aware of is to build 'n' for(;;) statements, one
inside the other, but I would then need 1.000 (MAX_VECTOR_LEN GTH)
for(;;) inside for(;;).
One key issue is that each chromossome member has different max-
elements, for example:
chromossome[0] may have max_value_for_e ach_chromossome[0] = 5
(chromossome[0] int will range from 0 to 4)
chromossome[1] may have max_value_for_e ach_chromossome[1] = 2
(chromossome[1] int will range from 0 to 1)
....
Is there a simpler way to achive this rather than the for(;;) inside
for(;;) scheme?
Thank you
Paulo
I am trying to find out an alternate way to brute-force a variable
length vector with different variable length contents.
int chromossome[MAX_VECTOR_LENG TH]
int max_value_for_e ach_chromossome[MAX_VALUES]
The only way I am aware of is to build 'n' for(;;) statements, one
inside the other, but I would then need 1.000 (MAX_VECTOR_LEN GTH)
for(;;) inside for(;;).
One key issue is that each chromossome member has different max-
elements, for example:
chromossome[0] may have max_value_for_e ach_chromossome[0] = 5
(chromossome[0] int will range from 0 to 4)
chromossome[1] may have max_value_for_e ach_chromossome[1] = 2
(chromossome[1] int will range from 0 to 1)
....
Is there a simpler way to achive this rather than the for(;;) inside
for(;;) scheme?
Thank you
Paulo
Comment