MotzkinAlgebra
: the planar diagrams whose blocks have size at most two — so points may also be left unpaired. Dimension , the Motzkin numbers.
MotzkinAlgebra(n)the Motzkin algebra on strandsOscar
EnumeratioDiagramAlgebra(:motzkin, n)RookAlgebra(n)partial permutations — blocks of size ≤ 2, each pairing a top with a bottomOscar
EnumeratioDiagramAlgebra(:motzkin, n)SymmetricGroupAlgebra(n)permutation diagrams only — dimension Oscar
EnumeratioDiagramAlgebra(:motzkin, n)Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer) -> diagram_algebra | diagram | always |
Details
- Dimension = 2, 9, 51, 323 — the Motzkin numbers, which count the same paths with a flat step that Catalan counts without
- Contains TemperleyLiebAlgebra: dropping the requirement that every point be paired is exactly what turns Catalan into Motzkin
RookAlgebra(n)counts — the partial permutations, i.e. the placements of non-attacking rooksSymmetricGroupAlgebra(n)is the group algebra of , the diagrams that are honest bijections
Examples
About
| Examples | 4 |
|---|---|
| Checked against | Oscar 3 agreeSageMath 2 agree |
| Crosswalk | WikipediaMathWorldWikidataDLMFOEISOscar |
Implementation
mapped
oscarpackages/oracle/src/mappings.tsSage has no Motzkin algebra.
See also: TemperleyLiebAlgebra, PartitionAlgebra, Diagram