MaximalRightCrossingCount
The most pairs (c, d) with a < c < b < d, over the pairs (a, b): arcs that cross a given arc at its right end.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St001047via PerfectMatching✓MaximalRightCrossingCount(partition)The most pairs (c, d) with a < c < b < d, over the pairs (a, b): arcs that cross a given arc at its right end.Typed signatures
| Type | Package | Applies |
|---|---|---|
(perfect_matching) -> number | combinatorics | always |
Details
- Defined over
PerfectMatchingas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
PerfectMatchingand nothing else — it reads values against their positions, or walks the orbits, so it needs the bijection. Applying it to a bare list is a type error, not a wrong answer. - FindStat's St001047 counts these, though its title says arcs crossing a given arc: its code sweeps the closers and counts the arcs opened inside and still open, which leaves out the arcs crossing at the left end.
Definition
Epsil, as the implementation runs it.
on PerfectMatching, over _x
0 if Length(_x) < 1 else Apply((openers: list<integer>) => Apply(
(closers: list<integer>) => Max(Map(
Function(Count(Filter(
Range(1, Length(_x)),
Function(openers[i] < openers[j] &&
openers[j] < closers[i] &&
closers[i] < closers[j], j),
)), i),
Range(1, Length(_x)),
)),
Map(
Function(Last(b), b),
_x,
),
), Map(
Function(b[1], b),
_x,
))Examples
Properties #
About
| Examples | 4 |
|---|---|
| Crosswalk | FindStat |