Re: How to construct all possible orderings
- To: mathgroup at smc.vnet.net
- Subject: [mg15677] Re: [mg15588] How to construct all possible orderings
- From: Jurgen Tischer <jtischer at col2.telecom.com.co>
- Date: Sat, 30 Jan 1999 04:29:09 -0500 (EST)
- Organization: Universidad del Valle
- References: <199901280923.EAA13076@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Carlos, I think what you are asking for are all words of length 3 over the alphabet {A,B,C}. So: Flatten[Outer[List,{A,B,C},{A,B,C},{A,B,C}],2] Jurgen Carlos Carreto wrote: > > Hello, > > I am trying to construct all possible orderings of for example 3 > elements, where each element can be A, B or C. > > The result will be something like this: AAA > AAB > AAC > ABA > . . . > CCC > > How can I do this? > > Thank you. > > -:- Carlos
- References:
- How to construct all possible orderings
- From: "Carlos Carreto" <ccarreto@ipg.pt>
- How to construct all possible orderings