GATE CSE
First time here? Checkout the FAQ!
x
0 votes
63 views

asked in DS by Boss (8.3k points)   | 63 views

1 Answer

+1 vote
I confirm that II is also True apart from I and III.

It depends on the definition of Complete BT the Question setter is following : for II to be true.

Most Author's define it as : Complete BT is a BT in which every node has 2 or 0 children.

Some Author's define it as : Complete BT is a BT where in all nodes have two children and you can remove children from rightmost node as well.

Eg:

Root has A,B. A has C,D and B has E,F---> complete BT

Now in this example internal nodes=3 and leaves=4

 

Root has A,B. A has C,D and B has E ----> rightmost child F removed--->still a complete BT.

Now in second example internal nodes=3 and leaves=3.

 

Hence GATE Questions always specify the convention we are supposed to follow.
answered by Active (2.3k points)  
edited by
Top Users Jan 2017
  1. Debashish Deka

    8322 Points

  2. sudsho

    5166 Points

  3. Habibkhan

    4718 Points

  4. Vijay Thakur

    4468 Points

  5. Bikram

    4420 Points

  6. saurabh rai

    4212 Points

  7. Arjun

    4072 Points

  8. santhoshdevulapally

    3732 Points

  9. Sushant Gokhale

    3514 Points

  10. GateSet

    3336 Points

Monthly Topper: Rs. 500 gift card

19,157 questions
24,065 answers
52,872 comments
20,288 users