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

asked in DS by Boss (8.6k points)   | 106 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.2k points)  
edited by


Top Users May 2017
  1. akash.dinkar12

    3308 Points

  2. pawan kumarln

    1884 Points

  3. Bikram

    1656 Points

  4. sh!va

    1640 Points

  5. Arjun

    1396 Points

  6. Devshree Dubey

    1272 Points

  7. Debashish Deka

    1162 Points

  8. Angkit

    1048 Points

  9. LeenSharma

    1010 Points

  10. Arunav Khare

    754 Points

Monthly Topper: Rs. 500 gift card
Top Users 2017 May 22 - 28
  1. Bikram

    742 Points

  2. pawan kumarln

    510 Points

  3. Arnab Bhadra

    490 Points

  4. bharti

    304 Points

  5. LeenSharma

    248 Points


22,832 questions
29,158 answers
65,233 comments
27,673 users