Re: [R] Permutations

From: Ingmar Visser <i.visser_at_uva.nl>
Date: Thu 15 Jul 2004 - 23:09:06 EST


On 7/14/04 7:42 PM, "Jordi Altirriba Gutiérrez" <altirriba@hotmail.com> wrote:

> 4 5 6 | 2 1 3 | 7 8 9 | 10 11 12 NO ----because it's an "intra-block"
> permutation of permutation 3
> - -
> 10 1 7 | 4 8 7 | 5 6 12 | 3 2 9 YES---Xth permutation
>
> 1 10 7 | 4 8 7 | 5 6 12 | 3 2 9 NO ----because it's an
> "intra-block"permutation of permutation X
> - -
>
> So, what is a "not correct" permutation is an "intra-block" permutation of a
> permutation created before.
>
> Again, thanks for your time and suggestions,

Hi Jordi,

If it is allowed to combine permutations then allowing inter block permutations will generate all possible permutations:

eg

1 2 3 | 4 5 6 
1 4 3 | 2 5 6
2 4 3 | 1 5 6
2 1 3 | 4 5 6

According to your inter- and intra-block permissions, this sequence is allowed but the result is not ...

best, ingmar



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 15 23:18:05 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:59 EST