Can anyone suggest an algorithm or function to generate combinations/ permutations of a group of substrings stored in a vector. The substrings consists of 3 letters and the resulting string combinations should be of a size that is a multiple of 3.
If using STL is allowed, perhaps http://www.sgi.com/tech/stl/next_permutation.html