cataclismic_user has asked for the wisdom of the Perl Monks concerning the following question:
I am a novice of Perl. My question is rather simple: how can I generate all permutations of a set of characters, with a given length, in an computationally efficient manner?
To further explain my conundrum: I have a large list of elements such as O=C(O)C(N)CCC/N=C(\N)N, O=C(N)C[C@H](N)C(=O)O, O=C(O)[C@@H](N)Cc1cncn1 and so on. I want to generate all possible permutations, including repetitions of these strings, in a given length (for ex. 6).Thank you in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: all permutations of given lenght
by Eily (Monsignor) on Aug 11, 2020 at 07:55 UTC | |
by cataclismic_user (Novice) on Aug 11, 2020 at 08:23 UTC | |
|
Re: all permutations of given lenght
by Corion (Patriarch) on Aug 11, 2020 at 07:24 UTC | |
|
Re: all permutations of given lenght
by Anonymous Monk on Aug 11, 2020 at 07:55 UTC | |
by cataclismic_user (Novice) on Aug 11, 2020 at 08:08 UTC | |
by Anonymous Monk on Aug 11, 2020 at 10:50 UTC | |
|
Re: all permutations of given lenght
by perlfan (Parson) on Aug 11, 2020 at 09:01 UTC |