183k views
0 votes
What is the depth of the following tree?

What is the depth of the following tree?-example-1
User Sobri
by
6.1k points

1 Answer

4 votes

Answer:

The correct answer to this question is given below in the explanation section.

Step-by-step explanation:

This given tree has four nodes. Node A is a parent node in this tree, while B, C, and D are child nodes of A.

The given options about the depth of the tree are:

  • A). 0
  • B). 1
  • C). 2
  • D). 3

The correct option to this question is (B) i.e. the depth of this tree is 1.

Because we know that the depth of a node M in the tree is the length of the path from the root of the tree to M. So, in this case, the depth of node A to node B, C, and D is 1. So, the correct option to this question is B. i.e the depth of the given tree is 1.

User Ephreal
by
6.1k points