BinaryTreeParentArrays
The binary trees with nodes, each as its in-order parent array.
BinaryTreeParentArrays(n)the binary trees with nodes, as parent arraysTyped signatures
| Type | Package | Applies |
|---|---|---|
(integer<0..>) -> indexed_collection<binary_tree_parent_array> | combinatorics | always |
Details
- Number the nodes in order; entry is the number of the -th node's parent, at the root. A node numbered below its parent is its left child, above it its right.
- Listed in BinaryTrees' order: BinaryTreeParentArray of the -th tree is the -th array.
- A binary search tree's values are its in-order numbers, so BinarySearchTreeParentArray lands here.
Maps
Into and out of BinaryTreeParentArray, called as CombinatorialMap(x, "Name"). Properties are the laws we state and what FindStat records.
From BinaryTreeParentArray
- BinaryTreeBinaryTreeParentArray → BinaryTreeinverseThe binary tree an in-order parent array describes: a node below its parent goes left, above it right.
To BinaryTreeParentArray
- BinarySearchTreeParentArrayPermutation → BinaryTreeParentArrayThe binary search tree of σ as its parent array: entry v is the value v is inserted under, 0 for the root.
- BinaryTreeParentArrayBinaryTree → BinaryTreeParentArrayinverseA binary tree as its parent array: its nodes numbered in order, entry k the number of the k-th node's parent, 0 at the root.
Examples
About
| Examples | 3 |
|---|
See also: BinaryTrees, BinarySearchTreeParentArray