fmk4

calculating permutation

Discussion created by fmk4 on Nov 7, 2012
Latest reply on Nov 8, 2012 by mbraendle

Hi,

 

I need to calculate permutation when presented with a series of numbers.

 

Example,

 

If input=XY, all possible permutation (2) = XY, YX

 

if input=XYZ, all possible permutation (6) = XYZ, XZY, ZXY, ZYX, YXZ, YZX

if input=XXZ, all possible permutation (3) = XXZ, XZX, ZXX

 

if input = XYZA, .......

 

Is there an algo that does these calculation?

Outcomes