Skip to content

LeftBorderSymmetry ​

Reverse the order of the right subtrees hanging off the left border, applying the same symmetry inside each.

LeftBorderSymmetry(BinaryTree)Reverse the order of the right subtrees hanging off the left border, applying the same symmetry inside each.
Typed signatures
TypePackageApplies
(binary_tree) -> binary_treecombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a BinaryTree and returns a BinaryTree — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • FindStat's Mp00018, an involution.

Examples

Basic #

a four-node tree

live ↗
InLeftBorderSymmetry(BinaryTree⁡([[0,0],[0,[0,0]]]))\mathrm{LeftBorderSymmetry}({\operatorname{BinaryTree}}(\bigl\lbrack\bigl\lbrack0, 0\bigr\rbrack, \bigl\lbrack0, \bigl\lbrack0, 0\bigr\rbrack\bigr\rbrack\bigr\rbrack))OutBinaryTree⁡([[0,[0,[0,0]]],0]){\operatorname{BinaryTree}}(\bigl\lbrack\bigl\lbrack0, \bigl\lbrack0, \bigl\lbrack0, 0\bigr\rbrack\bigr\rbrack\bigr\rbrack, 0\bigr\rbrack)
About
Examples1
CrosswalkFindStat