What is a child node?

The node which is the descendant(node which follows another node) of any node on a tree is known as a child node.

Or we can also say that every node excluding the root node is a child node in the tree. A child node always has a parent node to which it is connected. As you can see in the example below.

  • Where nodes (B) and (C) are children of the node (A).
  • Similarly, node (D) and node (E) are child nodes of (B).
  • And node (F) and node (G) are child nodes of  (C).

Child node in a tree.

What are the different types of Nodes in a Tree

Trees are nonlinear data structures that organize data hierarchically and in a recursive manner. 

It is a method of organizing and storing data in the computer in a way that makes it more effective to use. Nodes in the graph are connected via edges. It has different types of nodes which are called parent node, child node, leaf node, etc.

Similar Reads

What is a root node?

A node that is the first or topmost node in a tree is called a root node. In every tree, there is always one root node, which is the only node that has never previously been connected to another node....

Importance of root node:

The root node, which has no parents, is the highest node in the tree structure.  The entire message is represented by this node, which is a global element.  It may have one or more child nodes, but it is never recurring or able to have sibling nodes.  You can change the root node’s name....

What is a parent node?

The node which is a predecessor of another node is known as a parent node....

What is a child node?

The node which is the descendant(node which follows another node) of any node on a tree is known as a child node....

What is a leaf node?

A node that does not have any child node is called a leaf node....

What is a height of a tree?

The height of a tree is the total number of edges from a leaf node to any particular node usually a root node....

What is the depth of the tree?

The depth of a tree is the number of edges from the root node to a particular node, usually, a leaf node and the path followed from the root node to the particular node is the longest path of a tree....

What is the degree of a node in a tree?

The Degree of a node in the tree is the summation of the number of child nodes connected to it, and the node which has the highest number of child nodes in a tree is also known as the Degree of a tree....