permutation generation ?

Chet Creider creider at cogsci.uwo.ca
Thu Jun 13 22:27:36 AEST 1991


Has anyone written programs which generate permutations, ideally of
strings, not just integers, or know of a reference with algorithms?
An earlier request to sci.math.stats elicited no replies, but maybe
those readers are not programmers. Please note that the problem is
not to compute the number of permutations, but to list them. There is
a initial treatment, for integers only and for P(n,n) only, in Kruse,
Leung and Tondo, *Data Structures and Program Design in C*.

Many thanks,

Chet Creider <creider at cogsci.uwo.ca> or <creider at csd.uwo.ca>



More information about the Comp.lang.c mailing list