SymmetryDegree
The positions, counting inward from the ends, at which a Dyck path or a binary word agrees with its mirror image.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St001524via BinaryWord✓St001523via DyckPath✓SymmetryDegree(path)The number of step pairs, counting inward from the ends, at which the path agrees in height with its mirror image.SymmetryDegree(word)The positions i up to half the length where the letters i and n + 1 - i agree.Typed signatures
| Type | Package | Applies |
|---|---|---|
(binary_word | dyck_path) -> number | combinatorics | always |
Details
- Defined over
DyckPathas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
DyckPathand 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 "degree of symmetry".
- Defined over
BinaryWordas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
BinaryWordand 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.
Definition
Epsil, as the implementation runs it.
on DyckPath, over _x
0 if Length(_x) < 1 else Count(Filter(
Range(1, Length(_x) / 2),
Function(Join(
[0],
Map(
Function(Sum(Map(
Function(2 * _x[k] -
1, k),
Range(1, i),
)), i),
Range(1, Length(_x)),
),
)[2c - 1] == Join(
[0],
Map(
Function(Sum(Map(
Function(2 * _x[k] -
1, k),
Range(1, i),
)), i),
Range(1, Length(_x)),
),
)[Length(_x) -
(2c - 3) + 0] && Join(
[0],
Map(
Function(Sum(Map(Function(2 * _x[k] -
1, k), Range(1, i))), i),
Range(1, Length(_x)),
),
)[2c] ==
Join(
[0],
Map(
Function(Sum(Map(Function(2 * _x[k] -
1, k), Range(1, i))), i),
Range(1, Length(_x)),
),
)[Length(_x) - 2c +
2], c),
))on BinaryWord, over _x
0 if Length(_x) < 1 else Count(Filter(
Range(1, Length(_x)),
Function(2i <= Length(_x) && _x[i] ==
_x[Length(_x) +
1 - i], i),
))Examples
Properties #
About
| Examples | 9 |
|---|---|
| Crosswalk | FindStat ×2 |