Is each an AVL Tree?
Is each an AVL Tree?
1.
a. Yes
b. No, BST ordering property violated by 40 and 60
c. No. BST ordering property violated by 40 and 50
d. No 60 has invalid AVL balance pronerty
e. No 40 has invalid AVL balance property
2.
a. Yes
b. No, BST ordering property violated by 30 and 40
c. No. BST ordering property violated by 20 and 30
d. No 60 has invalid AVL balance property
e. No 20 has invalid AVL balance property
3.
a. Yes
b. No. BST ordering propertv violated by 50 and 60
c. No. BST ordering property violated by 10 and 20
d. No. 50 has invalid AVL balance property
e. No. 10 has invalid AVL balance property
4.
a. Yes
b. No. BST ordering property violated by 30 and 4C
c. No. BST ordering property violated by 20 and 40
d. No. 40 has invalid AVL balance property
e. No 30 has invalid AVL balance property
in the give question you have give various AVL Trees and asked whether given trees or AVL trees or not.
in the following section we will learn about each question with explanation
Step by step
Solved in 3 steps with 4 images