in DS edited by
348 views
1 vote
1 vote
Are Full and Perfect binary tree same ?
in DS edited by
348 views

7 Comments

edited by

Normally, Full binary tree means every level node has either 0 or 2 childrens, but perfect binary tree means every level( except last level, i.e., in which level leaves exist ) node should have 2 childrens.



In the GATE Exam, I hope they define these terms

1
1
If an internal node has 0 children then will it be internal ?
0
0

sorry vishalshrm539, it's my mistake, wrongly used the terms, i will update it

0
0

Shaik Masthan I think you have said the opposite thing..

In full binary tree all nodes have 2 children except the leaves..The diagram labeled as perfect should be full..

The diagram labeled as full should be complete binary tree...

Perfect binary tree I didn't hear of it earlier..but searched now and it is defined same as full..I couldn't find any difference :/

perfect binary tree

(definition)

Definition: A binary tree with all leaf nodes at the same depth. All internal nodes have degree 2.

Ref: https://xlinux.nist.gov/dads//HTML/perfectBinaryTree.html

0
0

Sorry Shaik Masthan Yes you are right.. i got confused :P

0
0

@MiNiPanda

No problem BRO

1
1

Please log in or register to answer this question.

Related questions