Re: All permutations of a sequence
- To: mathgroup at smc.vnet.net
- Subject: [mg76268] Re: All permutations of a sequence
- From: CKWong <CKWong.P at gmail.com>
- Date: Fri, 18 May 2007 06:30:47 -0400 (EDT)
- References: <firstname.lastname@example.org>
<< DiscreteMath`Combinatorica` n = 5; lst = Range[n]; lstP = Permutations[lst]; Select[lstP, (SignaturePermutation[#] == 1) &] Warning: this algorithm is very slow for large n.