Skip to content

DescentWord ​

Letter i is 1 when the word falls between positions i and i + 1: the descent set as a binary word.

DescentWord(Permutation)Letter i is 1 when the word falls between positions i and i + 1: the descent set as a binary word.
Typed signatures
TypePackageApplies
(permutation) -> binary_wordcombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a Permutation and returns a BinaryWord — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • One letter shorter than the permutation, so the empty permutation has no descent word.

Examples

Basic #

the one-line word 231231

live ↗
InDescentWord(Permutation⁡([2,3,1]))\mathrm{DescentWord}({\operatorname{Permutation}}([2, 3, 1]))OutBinaryWord⁡([0,1]){\operatorname{BinaryWord}}([0, 1])
About
Examples1
CrosswalkFindStat