Alternating permutation


English Wikipedia - The Free EncyclopediaDownload this dictionary
Alternating permutation
In combinatorial mathematics, an alternating permutation of the set {1, 2, 3, ..., n} is an arrangement of those numbers into an order c1, ..., cn such that no element ci is between ci - 1 and ci + 1 for any value of i and c1< c2. In other words, ci < ci+ 1 if i is odd and ci > ci+ 1 if i is even. For example, the five alternating permutations of {1, 2, 3, 4} are:
  • 1, 3, 2, 4       because       1 < 3 > 2 < 4
  • 1, 4, 2, 3       because       1 < 4 > 2 < 3
  • 2, 3, 1, 4       because       2 < 3 > 1 < 4
  • 2, 4, 1, 3       because       2 < 4 > 1 < 3
  • 3, 4, 1, 2       because       3 < 4 > 1 < 2
This type of permutation was first studied by Désiré André in the 19th century.

See more at Wikipedia.org...


© This article uses material from Wikipedia® and is licensed under the GNU Free Documentation License and under the Creative Commons Attribution-ShareAlike License