Answer to Question #120782 in Discrete Mathematics for Roshanthi

Question #120782
1. Discuss two examples on binary trees both quantitatively and qualitatively.
1
Expert's answer
2020-06-08T17:13:25-0400

BINARY TREE :Each node can have atmost two children.maximum number of nodes possible at any level i is 2i. Binary tree play a vital role in a software application.one of the most application of binary

tree is searching algorithm.

Binary tree is a special data structure used for data storage purpose. Binary tree are used to represent a nonlinear data structure.


First example Quantitative binary tree

complete binary tree: A binary tree is a complete binary tree if all levels are completely filled (except possibly the last level and the last level has nodes as left as possible.

Maximum nodes =2h+1 -1

Minimum nodes =2h


maximum height=log n

second Example Qualitative binary tree

FULL BINARY TREE: Each node have either 0 or 2 children.Each node will contain exactly two children

except leaf node

number of leaf nodes= number of internal node +1.

maximum nodes=2h+1 -1

minimum nodes=2h +1


maximum height =(n-1)/2


Array especially suited for full binary tree



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS