recategorized by
1,621 views

2 Answers

7 votes
7 votes
Height of a binary tree is the longest path from it’s root to any of its leaves.

With number of nodes as n,

Max height possible: n-1 (skewed binary trees)

Min height  possible: $floor(\log_{2}n)$ (perfect binary trees)

 

An AVL tree is a height-balanced binary tree where the difference between the heights of the left subtree and the right subtree cannot exceed 1 for all nodes.

Related questions

14 votes
14 votes
3 answers
1
go_editor asked Dec 19, 2016
3,144 views
Consider the tree given in the below figure, insert $13$ and show the new balance factors that would arise if the tree is not rebalanced. Finally, carry out the required ...
6 votes
6 votes
2 answers
2
go_editor asked Dec 19, 2016
2,109 views
Mark the balance factor of each node on the tree given in the below figure and state whether it is height-balanced.
8 votes
8 votes
3 answers
3
go_editor asked Dec 20, 2016
3,393 views
Assume that the matrix $A$ given below, has factorization of the form $LU=PA$, where $L$ is lower-triangular with all diagonal elements equal to $1, U$ is upper-triangula...
7 votes
7 votes
3 answers
4
go_editor asked Dec 20, 2016
1,263 views
Are the two digraphs shown in the above figure isomorphic? Justify your answer.