Skip to content

BoundaryLength ​

The edges on the leftmost path from the root plus those on the rightmost.

✓ checked against that system · ! checked, with disagreements (hover a chip)FindStatSt000973via OrderedTree✓
BoundaryLength(tree)The edges on the leftmost path from the root plus those on the rightmost.
Typed signatures
TypePackageApplies
(ordered_tree) -> numbercombinatoricsalways

Domain: Tree statistics

Details
  • Defined over OrderedTree as an expression in _x, evaluated by compute-engine — the definition IS the implementation.
  • Takes a OrderedTree and 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 OrderedTree, over _x

Apply(
       Function(0 if Length(t) == 0 else 1 + self(self, t[1]), self, t),
       Function(0 if Length(t) == 0 else 1 + self(self, t[1]), self, t),
       _x,
     ) + Apply(
               Function(0 if Length(t) == 0 else 1 + self(self, t[-1]), self, t),
               Function(0 if Length(t) == 0 else 1 + self(self, t[-1]), self, t),
               _x,
             )

Examples

Basic #

the ordered tree [[],[[]],[]][[],[[]],[]]

live ↗
InBoundaryLength(OrderedTree⁡([[],[[]],[]]))\mathrm{BoundaryLength}({\operatorname{OrderedTree}}(\bigl\lbrack\bigl\lbrack\bigr\rbrack, \bigl\lbrack\bigl\lbrack\bigr\rbrack\bigr\rbrack, \bigl\lbrack\bigr\rbrack\bigr\rbrack))Out22
Properties #

FindStat's value for [[]]

live ↗
InCombinatorialStat(OrderedTree⁡([[]]),BoundaryLength)\mathrm{CombinatorialStat}({\operatorname{OrderedTree}}(\bigl\lbrack\bigl\lbrack\bigr\rbrack\bigr\rbrack), \text{BoundaryLength})Out22

Known value · FindStat St000973

FindStat's value for [[[]]]

live ↗
InCombinatorialStat(OrderedTree⁡([[[]]]),BoundaryLength)\mathrm{CombinatorialStat}({\operatorname{OrderedTree}}(\bigl\lbrack\bigl\lbrack\bigl\lbrack\bigr\rbrack\bigr\rbrack\bigr\rbrack), \text{BoundaryLength})Out44

Known value · FindStat St000973

FindStat's value for [[],[]]

live ↗
InCombinatorialStat(OrderedTree⁡([[],[]]),BoundaryLength)\mathrm{CombinatorialStat}({\operatorname{OrderedTree}}(\bigl\lbrack\bigl\lbrack\bigr\rbrack, \bigl\lbrack\bigr\rbrack\bigr\rbrack), \text{BoundaryLength})Out22

Known value · FindStat St000973

About
Examples4
CrosswalkFindStat