Skip to content

PeaksToValleys ​

The path with a valley wherever the original has a peak of height at least 2, each valley two lower than its peak.

PeaksToValleys(DyckPath)The path with a valley wherever the original has a peak of height at least 2, each valley two lower than its peak.
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 Mp00222, the inverse of rowmotion on Dyck paths as order ideals of the triangular poset.

Examples

Basic #

the Dyck path UUDDUDUUDDUD

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