Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the balance factor of a node with height 3 on the left and height 1 on the right?
Remember balance factor = height of left - height of right.
What type of rotation is performed for a balance factor of +2?
What action is taken to balance the tree?
What is the resulting balance factor of a node where the left height is 4 and the right height is 2?
Calculate using the difference of heights.
True or False: The AVL tree guarantees that the tree remains perfectly balanced at all times.
Consider what balance factors allow.
Given the sequence of integers 10, 20, 30, 40, 50, insert them into an AVL tree and show the necessary rotations.
Draw the tree after each insertion.
After deleting a node from an AVL tree, describe how you would recheck the balance and what steps would follow for rebalance.
Follow the rebalancing procedures you learned.
4 more questions in this section. Enroll free to practise them all.
Enroll free