Skip to content

RiseComposition ​

The lengths of the maximal runs of up steps, left to right.

RiseComposition(DyckPath)The lengths of the maximal runs of up steps, left to right.
Typed signatures
TypePackageApplies
(dyck_path) -> compositioncombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a DyckPath and returns a IntegerComposition — a typed map, so a wrong carrier is a type error rather than a wrong answer.

Examples

Basic #

the Dyck path UUDDUDUUDDUD

live ↗
InRiseComposition(DyckPath⁡([1,1,0,0,1,0]))\mathrm{RiseComposition}({\operatorname{DyckPath}}([1, 1, 0, 0, 1, 0]))OutIntegerComposition⁡([2,1]){\operatorname{IntegerComposition}}([2, 1])
About
Examples1
CrosswalkFindStat