1 Reply Latest reply on Nov 8, 2012 12:00 AM by mbraendle

    calculating permutation

    fmk4

      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?