The set of all bottom-grounded subtrees of a tree. This is the set of every subtree of the tree T that:
T
The number of such subtrees of a tree is the number of nodes in the tree.
For example consider the tree:
┬root ├┬a │├─b │└─c └┬d ├─e └─f Copy
┬root ├┬a │├─b │└─c └┬d ├─e └─f
bottomSubtrees will return for this tree seven trees, one per node:
bottomSubtrees
1. ─b 4. ─e 7. ┬root ├┬a 2. ─c 5. ─f │├─b │└─c 3. ┬a 6. ┬d └┬d ├─b ├─e ├─e └─c └─f └─f Copy
1. ─b 4. ─e 7. ┬root ├┬a 2. ─c 5. ─f │├─b │└─c 3. ┬a 6. ┬d └┬d ├─b ├─e ├─e └─c └─f └─f
The set of all bottom-grounded subtrees of a tree. This is the set of every subtree of the tree
Tthat:T. Every node inTappears exactly once in its subtrees list as root node.T. This makes it bottom-grounded.The number of such subtrees of a tree is the number of nodes in the tree.
For example consider the tree:
bottomSubtreeswill return for this tree seven trees, one per node: