Home > Term: binary tree representation of trees
binary tree representation of trees
A way to represent a multiway tree as a binary tree. The leftmost child, c, of a node, n, in the multiway tree is the left child, c', of the corresponding node, n', in the binary tree. The immediately right sibling of c is the right child of c'. Formal Definition: A multiway tree T can be represented by a corresponding binary tree B. Let (n1,..., nk) be nodes of the multiway tree, T. Let (n'1,..., n'k) be nodes of the corresponding binary tree B. Node nk corresponds to n'k. In particular, nodes nk and n'k have the same labels and if nk is the root of T, n'k is the root of B. Connections correspond as follows:
- If nl is the leftmost child of nk, n'l is the left child of n'k. (If nk has no children, n'k has no left child.)
- If ns is the next (immediately right) sibling of nk, n's is the right child of n'k.
- Μέρος του λόγου: noun
- Κλάδος/Τομέας: Υπολογιστές
- Category: Αλγόριθμοι & δομές
- Government Agency: NIST
0
Δημιουργός
- GeorgeV
- 100% positive feedback