Re: math combinations

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

On 27 May 2002, at 3:57, tone.skoda at siol.net wrote:

> 
> 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'}

I think it was Jiri who wrote a mesh.e, it's in the archives somewhere.

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu