Permutation Generator
Jack Diederich
jack at performancedrivers.com
Sun Aug 14 10:13:54 EDT 2005
On Fri, Aug 12, 2005 at 03:48:38PM -0400, Michael J. Fromberger wrote:
> In article <mailman.3042.1123875574.10512.python-list at python.org>,
> Talin <talin at acm.org> wrote:
>
> > I'm sure I am not the first person to do this, but I wanted to share
> > this: a generator which returns all permutations of a list:
>
> You're right that you're not the first person to do this: Many others
> have also posted incorrect permutation generators.
>
Amen, combinatorics are so popular they should be in the FAQ.
groups.google.com can show you many pure python recipies and benchmarks,
but I'll give my ususal response:
http://probstat.sourceforge.net/
I'm not just the author, I'm a client-ly,
-jackdied
More information about the Python-list
mailing list