Skip to content

RightBranchOrderedTree ​

A binary tree as an ordered tree with one more vertex: a right child becomes its parent's right brother, a left child its parent's first child.

RightBranchOrderedTree(BinaryTree)A binary tree as an ordered tree with one more vertex: a right child becomes its parent's right brother, a left child its parent's first child.
Typed signatures
TypePackageApplies
(binary_tree) -> ordered_treecombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a BinaryTree and returns a OrderedTree — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • FindStat's Mp00015, Sage's to_ordered_tree_right_branch, a bijection. Its inverse is RightBranchBinaryTree. OrderedTree(BinaryTree) is the left-branch bijection, which is the constructor.

Examples

Basic #

a four-node tree

live ↗
InRightBranchOrderedTree(BinaryTree⁡([[0,0],[0,[0,0]]]))\mathrm{RightBranchOrderedTree}({\operatorname{BinaryTree}}(\bigl\lbrack\bigl\lbrack0, 0\bigr\rbrack, \bigl\lbrack0, \bigl\lbrack0, 0\bigr\rbrack\bigr\rbrack\bigr\rbrack))OutOrderedTree⁡([[[]],[],[]]){\operatorname{OrderedTree}}(\bigl\lbrack\bigl\lbrack\bigl\lbrack\bigr\rbrack\bigr\rbrack, \bigl\lbrack\bigr\rbrack, \bigl\lbrack\bigr\rbrack\bigr\rbrack)
About
Examples1
CrosswalkFindStat