TopLeftZeroSquareSize
The side of the largest square of zeros at the top left corner.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St001981via AlternatingSignMatrix✓TopLeftZeroSquareSize(tableau)The side of the largest square of zeros at the top left corner.Typed signatures
| Type | Package | Applies |
|---|---|---|
(alternating_sign_matrix) -> number | combinatorics | always |
Details
- Defined over
AlternatingSignMatrixas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
AlternatingSignMatrixand 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 St001981. The square of side z is all zeros exactly when z is below the largest of the row and column of every nonzero entry, so the side is the least such largest, less 1; an alternating sign matrix has a nonzero entry.
Definition
Epsil, as the implementation runs it.
on AlternatingSignMatrix, over _x
0 if Length(_x) < 1 else Apply((cells: list<integer>) => Apply((side: integer) => Min(Map(
Function(Max([(u -
((u - 1) %
side +
1)) /
side +
1, (u - 1) %
side +
1]) if cells[u] != 0 else side, u),
Range(1, side * side),
)) -
1, Length(_x)), Flatten(_x))Examples
Properties #
About
| Examples | 4 |
|---|---|
| Crosswalk | FindStat |