RE: math combinations

new topic     » goto parent     » topic index » view thread      » older message » newer message

This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C20504.40453280
	charset="iso-8859-2"

where is {'c','a','b'}? :)
  -----Original Message-----
  From: tone.skoda at siol.net [mailto:tone.skoda at siol.net]
  Sent: Sunday, May 26, 2002 8:58 PM
  To: EUforum
  Subject: math combinations



  How would I write a routine which would shuffle all members in a sequence
so that all possible combinations would be gotten?
  Also, input sequence could have two or more equal members.

  For example, all combinations for {'a','b','c'} would be:
  {'a','b','c'}
  {'a','c','b'}
  {'b','a','c'}
  {'b','c','a'}
  {'c','b','a'}






------=_NextPart_000_000C_01C20504.40453280
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D402222503-27052002>where=20
is {'c','a','b'}? :)</SPAN></FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px">
  <DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> =
tone.skoda at siol.net=20
  [mailto:tone.skoda at siol.net]<BR><B>Sent:</B> Sunday, May 26, 2002 8:58 =

  PM<BR><B>To:</B> EUforum<BR><B>Subject:</B> math=20
  =
combinations<BR><BR></DIV></FONT><PRE>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 The Euphoria Mailing List =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
</PRE>
  <DIV><FONT face=3DArial size=3D2>How would I write a routine which =
would shuffle=20
  all members in a sequence so that&nbsp;all possible combinations would =
be=20
  gotten?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Also, input sequence could have two =
or more equal=20
  members.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>For example, all combinations for =
{'a','b','c'}=20
  would=20
  =
be:<BR>{'a','b','c'}<BR>{'a','c','b'}<BR>{'b','a','c'}<BR>{'b','c','a'}<B=
R>{'c','b','a'}</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV><PRE>=3D=3D^=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
This email was sent to: cklester at yahoo.com

EASY UNSUBSCRIBE click here: <A =
href=3D"http://topica.com/u/?b1dd66.b2Iiq0">http://topica.com/u/?b1dd66.b=
2Iiq0</A>
Or send an email to: EUforum-unsubscribe at topica.com

T O P I C A -- Register now to manage your mail!
<A =
href=3D"http://www.topica.com/partner/tag02/register">http://www.topica.c=
om/partner/tag02/register</A>
=3D=3D^=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</PRE></BLOCKQUOTE></B=

------=_NextPart_000_000C_01C20504.40453280--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu