Skip to content

SwapReturnsAndLastDescent ​

An involution exchanging the number of returns with the length of the last descent.

SwapReturnsAndLastDescent(DyckPath)An involution exchanging the number of returns with the length of the last descent.
Typed signatures
TypePackageApplies
(dyck_path) -> dyck_pathcombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a DyckPath and returns a DyckPath — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • FindStat's Mp00118, the specialization to Dyck paths of the map of Elizalde and Rubey. It keeps the number of ups before each down that is neither a return nor in the last descent.

Examples

Basic #

the Dyck path UUDDUDUUDDUD

live ↗
InSwapReturnsAndLastDescent(DyckPath⁡([1,1,0,0,1,0]))\mathrm{SwapReturnsAndLastDescent}({\operatorname{DyckPath}}([1, 1, 0, 0, 1, 0]))OutDyckPath⁡([1,1,0,1,0,0]){\operatorname{DyckPath}}([1, 1, 0, 1, 0, 0])
About
Examples1
CrosswalkFindStat