Subj : Re: how to generate a sequence? To : comp.programming From : gswork Date : Thu Sep 08 2005 06:32 am Neo wrote: > Hi All, > > I have problem, I want to generate all possible (unique) combinations of the > following sequence: > > > 123456789 > 213456789 > 312456789 > 321456789 > . > . > > > > Symbols allowed : 1 - 9 > Though, symbols can be anything like A B C D E F G H I, not necessarily > numbers. > NOTE: there will be !n (Factorial n) lines of output, 'coz there can be !n > combinations of n symbols. > > > Algo. required! Do U have a quick solution in mind??? have you checked out any permutation algorithms? source code is easy to find online. .