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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups-beta.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to