Skip to content

DescentTopWord ​

Letter v - 1 is 1 when value v is a descent top: some smaller value immediately follows it.

DescentTopWord(Permutation)Letter v - 1 is 1 when value v is a descent top: some smaller value immediately follows it.
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.
  • Value 1 is never a descent top, so the first letter stands for 2.

Examples

Basic #

the one-line word 231231

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