Re: Generalize Problem : Generate all possible combinations

From: A. Sinan Unur (1usa_at_llenroc.ude.invalid)
Date: 11/08/04


Date: 8 Nov 2004 17:57:25 GMT

rajsena911@gmail.com (rajsena) wrote in news:b15e70aa.0411080947.66cf4073
@posting.google.com:

> Hi,
>
> I would really appreciate if somebody could help me with this problem
>
> Problem: Need to generate All possible combinations for a N-bit number
> wherein each position as a finite (1-6) possibilities.

We are not going to solve your homework and/or job interview question.

However, you should be able to solve your problem by using the appropriate
module from CPAN (http://search.cpan.org/). 'Permutation' might be a
suitable keyword to use.

Once you have attempted a solution on your own and have code, please come
back and post specific issues you are having. However, before doing that, I
would recommend reading the posting guidelines for this group. The
guidelines are posted here regularly.

Sinan