Question: In Java, design and implement an AVL self balanced tree of integer nodes. The class will have the following class definition. class AVLNode t AVLNode
In Java, design and implement an AVL self balanced tree of integer nodes. The class will have the following class definition.



class AVLNode t AVLNode (int element, AVLNode leftElement, AVLNode rightElement) int element AVLNode leftNode; AVLNode rightNode: int height: Notes: 1- The class definition is not complete. Add any methods and member variables that are needed to get your program working 2- If any information is missing, go ahead and assume any valid assumption. State it in your readme file. 3- Write a main program to test your class. Use the following two trees to test your balancing implementation. Check at the end if the tree is balanced, by calculating its balance (check bellow definitions)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
