Re: How to construct all possible orderings
- To: mathgroup at smc.vnet.net
- Subject: [mg15621] Re: [mg15588] How to construct all possible orderings
- From: Carl Woll <carlw at fermi.phys.washington.edu>
- Date: Sat, 30 Jan 1999 04:28:24 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Carlos,
Here's one way
Flatten[Outer[StringJoin,{"A","B","C"},{"A","B","C"}]]
Carl Woll
Dept of Physics
U of Washington
On Thu, 28 Jan 1999, 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
>
>
>