Binary tree
Definition
The binary trees are defined recursively by these two rules. The empty tree is a binary tree. It has no nodes. If and are binary trees, then is a binary tree. It has one more node than and together, the root, with left subtree and right subtree . Every binary tree comes from these two rules in a unique way, in finitely many steps.
Remarks
The left and right subtrees are ordered. Thus and are different binary trees with nodes. The number of binary trees with nodes is the Catalan number . The node binary trees are counted by Catalan numbers states this. A nonempty binary tree is a rooted tree in which each vertex has at most two children, each marked left or right.
Explanations
L1 human
A binary tree is either empty, or a root with a left part and a right part that are binary trees again. Binary trees are used in computer science to store data for fast search.
What this node needs for W2
- edge instance_of in: one example (0 of 1)
- edge not_instance_of in: one non-example that fails one clause (0 of 1)
The writing levels say how complete the text of a node is. They do not measure its truth.
What depends on this
1 node uses this node, directly or through other nodes.
- Binary trees are counted by Catalan numbers 0Y97E2DMB7
Sources
- Web https://en.wikipedia.org/wiki/Binary_tree, Recursive definition
What links here
Used by
- Binary trees are counted by Catalan numbers 0Y97E2DMB7