Skip to content

LeftToRightMaximaDyckPath ​

The Dyck path whose rises climb to each left-to-right maximum and whose falls run to the next one.

LeftToRightMaximaDyckPath(Permutation)The Dyck path whose rises climb to each left-to-right maximum and whose falls run to the next one.
Typed signatures
TypePackageApplies
(permutation) -> dyck_pathcombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a Permutation and returns a DyckPath — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • FindStat's Mp00127. Restricted to the 321-avoiding permutations it is a bijection with the Dyck paths.

Examples

Basic #

the one-line word 231231

live ↗
InLeftToRightMaximaDyckPath(Permutation⁡([2,3,1]))\mathrm{LeftToRightMaximaDyckPath}({\operatorname{Permutation}}([2, 3, 1]))OutDyckPath⁡([1,1,0,1,0,0]){\operatorname{DyckPath}}([1, 1, 0, 1, 0, 0])
About
Examples1
CrosswalkFindStat