edited by
1,153 views

2 Answers

Best answer
3 votes
3 votes

The problem here is that we cannot assume the symbols are in any particular order. We have no way of saying "in any order", so we have to list the possible orders:

abc + acb + bac + bca + cab + cba


To make it easier to see what's happening, let's put an X in every place we want to allow an arbitrary string:

XaXbXcX + XaXcXbX + XbXaXcX + XbXcXaX + XcXaXbX + XcXbXaX

Where X is any arbitrary string i.e. (a+b+c)*


Finally, replacing the X's with (a+b+c)* gives the final (unwieldy) answer :

(a+b+c)*a(a+b+c)*b(a+b+c)*c(a+b+c)* + (a+b+c)*a(a+b+c)*c(a+b+c)*b(a+b+c)* + (a+b+c)*b(a+b+c)*a(a+b+c)*c(a+b+c)* + (a+b+c)*b(a+b+c)*c(a+b+c)*a(a+b+c)* + (a+b+c)*c(a+b+c)*a(a+b+c)*b(a+b+c)* + (a+b+c)*c(a+b+c)*b(a+b+c)*a(a+b+c)*

selected by
1 votes
1 votes
(a+b+c)*a(a+b+c)*b(a+b+c)*c(a+b+c)* + (a+b+c)*a(a+b+c)*c(a+b+c)*b(a+b+c)* + (a+b+c)*b(a+b+c)*a(a+b+c)*c(a+b+c)*  +

(a+b+c)*b(a+b+c)*c(a+b+c)*a(a+b+c)* +  (a+b+c)*c(a+b+c)*b(a+b+c)*a(a+b+c)*  + (a+b+c)*c(a+b+c)*a(a+b+c)*b(a+b+c)*

Related questions

1 votes
1 votes
2 answers
2