in Graph Theory edited by
617 views
3 votes
3 votes

The height of a rooted tree is the maximum height of any leaf. The length of the unique path from a leaf of the tree to the root is, by definition, the height of that leaf. A rooted tree in which each non-leaf vertex has at most two children is called a binary tree. If each non-leaf vertex has exactly two children, the tree is called a full binary tree.
Consider the following statements. Which of the following is true?

  1. If a binary tree has $\text{L}$ leaves and height $h$ then $\text{L} \leq 2^h$
  2. If a binary tree has $\text{L}$ leaves then the maximum value of height $h$ is $\text{L}^{\text{L}}.$
  3. Given a full binary tree with $\text{L}$ leaves, the maximum height $h = L-1.$
  4. It is possible to have a binary tree with $35$ leaves and height $100.$
in Graph Theory edited by
617 views

4 Comments

sir I think A and D  be the answer so why at option a,c,d are given as correct at answer I think it needs to be edit.
0
0

The maximum possible height of a FULL binary tree with $L$ leaves is $L-1.$

See this comment:

 https://gateoverflow.in/375244/Go-classes-2023-discrete-mathematics-test-5-question-23?show=376981#c376981

 

2
2
why option d is correct full binary tree cant be 100 height given 35 leaves . it is not possible .
0
0
Option D is asking for “Binary Tree”, Not for “Full Binary Tree”.
0
0

1 Answer

4 votes
4 votes



Knowing the number of leaves does not bound the height of a tree — it can be arbitrarily large. So a binary tree with $35$ leaves and height $100$ is possible.

edited by

3 Comments

Elaborating option (C)

3
3
edited by

@Deepak Poonia sir maximum leaves will be when the tree is a complete binary tree. So for a height of 100 maximum leaves will be $2^{100} $. So 35 leaves are possible and the number of leaves is possible from 1 till  $2^{100} $ for height 100.

Option B is false bcz just consider left skewed tree with 5 nodes. The height of the tree will be 4 and the number of leaves will be 1. So, we can clearly see that the number of leaves does not bound the height of the binary tree.

3
3

That’s right @samarpita.

0
0
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true