MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

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



  • Prev by Date: Re: trig asymptotics
  • Next by Date: Re: trig asymptotics
  • Previous by thread: How to construct all possible orderings
  • Next by thread: Re: How to construct all possible orderings