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 left height 3 and right height 2?
Balance factor is calculated as left height minus right height.
Name one operation that can be performed to maintain AVL tree balance.
Think of how we change tree structure.
What defines an AVL tree?
Think about what it means for trees to be balanced.
True or False: An AVL tree can have a balance factor of 2.
Remember the balance definition in AVL trees.
Create a balanced AVL tree and explain each step performed during insertions and any rotations applied.
Keep track of the balance factors after each insertion.
Consider a deletion in an AVL tree. Explain how you can determine if a tree is still balanced after an element is removed.
How do heights change from a deletion action?
4 more questions in this section. Enroll free to practise them all.
Enroll free