PDA

View Full Version : every possible sequence



timmu
10th August 2012, 13:57
Hi,

I have an array of letters. I'd like to create every possible sequence of these letter (all combinations). Does Qt have have a combinatorical function that does such a thing?

Thank you!

yeye_olive
10th August 2012, 13:59
Not that I know of. Oh, and I suppose that you are not really interested in all possible sequences, as there are infinitely many of them.

spirit
10th August 2012, 14:26
You can use these functions.
8122
8123

amleto
10th August 2012, 14:36
http://www.cplusplus.com/reference/algorithm/next_permutation/