Generic Tree
-
A generic tree is a tree in which each node can have an arbitrary number of children.
-
A
n-ary Treeis a tree where each node can have up ton children, where n is a predefined upper limit. - A
Binary Tree: A special case of an n-ary tree where each node can have up to 2 children. - A
Ternary Tree: A special case of an n-ary tree where each node can have up to 3 children. - A
Quaternary Tree: A special case of an n-ary tree with up to 4 children.