MathGroup Archive 1999

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

Search the Archive

Re: Enumerating Permutations


>For example:
>
>In[3]:=
>NthPermutation[3, {a, b, c, d}]
>Out[3]=
>{a, c, d, b}
>The algorithm that does this is the obvious one. I can describe it in words
>if you really want it but it is better to just look at the code in the
>Combinatorica package.


This is exactly what I am looking for.  I just did not want to potentially
expand the whole list of permutations before I selected one.  Where do I
find the Conbinatorica package?

Vic





  • Prev by Date: Re: List-Selection
  • Next by Date: Re: Enumerating Permutations
  • Previous by thread: Re: Enumerating Permutations
  • Next by thread: Re: Enumerating Permutations