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

asked in DS by Boss (8.7k points)   | 187 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 Loyal (2.5k points)  
edited by


Top Users Sep 2017
  1. Habibkhan

    6334 Points

  2. Warrior

    2202 Points

  3. Arjun

    2150 Points

  4. nikunj

    1980 Points

  5. manu00x

    1726 Points

  6. SiddharthMahapatra

    1718 Points

  7. Bikram

    1706 Points

  8. makhdoom ghaya

    1650 Points

  9. A_i_$_h

    1518 Points

  10. rishu_darkshadow

    1512 Points


25,979 questions
33,554 answers
79,344 comments
31,011 users