M
marora
Hey,
I am looking for an algorithm to do as follows:
my @array = qw (A B C); # This array may have several parameters, for
ex. A B C D
I will like to generate following (not sure if this will be called
permutation):
<NULL>
C
B
A
B C
A C
A B
A B C
Available permutation algorithms generate a different output, for
example:
b c a
c b a
c a b
a c b
b a c
a b c
Any suggestions!
Thanks in advance.
Manish
I am looking for an algorithm to do as follows:
my @array = qw (A B C); # This array may have several parameters, for
ex. A B C D
I will like to generate following (not sure if this will be called
permutation):
<NULL>
C
B
A
B C
A C
A B
A B C
Available permutation algorithms generate a different output, for
example:
b c a
c b a
c a b
a c b
b a c
a b c
Any suggestions!
Thanks in advance.
Manish