This is the mail archive of the
gsl-discuss@sourceware.cygnus.com
mailing list for the GSL project.
Re: simple permutation generation
- To: Mark Galassi <rosalia@cygnus.com>
- Subject: Re: simple permutation generation
- From: Brian Gough <bjg@netsci.freeserve.co.uk>
- Date: Wed, 07 Apr 1999 12:26:53 +0100
- CC: gsl-discuss@sourceware.cygnus.com
- References: <199904061027.EAA01667@opistocoelocaudia.mit.edu>
The C++ STL functions prev_permutation and next_permutation in algo.h
will step through the permutations of a sequence in order. The code is
in the header file stl_algo.h.