Search code examples
pythonalgorithmautomationpermutation

Automaton for recognition abc , bac, bca .. words


I need to build an automation, to permutate letters of three symbols - a,b,c. For example the results can be - abc,acb,bac,bca,cab,cba, total 6 permutations for 3 symbols. Can this be coded in Python?

Please help! Each symbol can be used only one time. And length of each permutation must be equal to 3.


Solution

  • The simplest one is the following:

    enter image description here