Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  In a binary tree, the number of internal node... Start Learning for Free
In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree is 
  • a)
    10
  • b)
    11
  • c)
    12
  • d)
    15
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
In a binary tree, the number of internal nodes of degree 1 is 5, and t...
In a binary tree, the number of leaf nodes is always 1 more than number of internal nodes with 2 children, refer
So, Number of Leaf Nodes = Number of Internal nodes with 2 children + 1 Number of Leaf Nodes = 10 + 1 Number of Leaf Nodes = 11
View all questions of this test
Most Upvoted Answer
In a binary tree, the number of internal nodes of degree 1 is 5, and t...
Solution:

Given the number of internal nodes of degree 1 = 5,
and number of internal nodes of degree 2 = 10.

Let the number of leaf nodes be 'L'.
Total number of nodes in the binary tree = Internal nodes + Leaf nodes.
Therefore, Total number of nodes = 5 + 10 + L = 15 + L.

Let's consider the degrees of all the nodes in the binary tree.

Each internal node can have either 1 or 2 child nodes.
Therefore, the total number of child nodes of all internal nodes = (1 * Number of internal nodes of degree 1) + (2 * Number of internal nodes of degree 2)
= (1 * 5) + (2 * 10) = 25.

Each leaf node has degree 0.
Therefore, the total number of child nodes of all leaf nodes = (0 * Number of leaf nodes) = 0.

Total number of child nodes = Number of parent nodes.
Therefore, Total number of internal nodes = 25.

Now, Total number of nodes = Internal nodes + Leaf nodes.
15 + L = 25.
L = 10.

Therefore, the number of leaf nodes in the binary tree is 10.
Hence, the correct answer is option B.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isa)10b)11c)12d)15Correct answer is option 'B'. Can you explain this answer?
Question Description
In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isa)10b)11c)12d)15Correct answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isa)10b)11c)12d)15Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isa)10b)11c)12d)15Correct answer is option 'B'. Can you explain this answer?.
Solutions for In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isa)10b)11c)12d)15Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isa)10b)11c)12d)15Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isa)10b)11c)12d)15Correct answer is option 'B'. Can you explain this answer?, a detailed solution for In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isa)10b)11c)12d)15Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isa)10b)11c)12d)15Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isa)10b)11c)12d)15Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev