Activity 01
Pair Tracing: AVL Rotations
Pairs receive diagrams of unbalanced AVL trees after insertions. They perform left/right rotations step-by-step, labeling heights and verifying balance factors. Pairs then swap diagrams to check each other's work and discuss rotation choices.
How can we ensure a tree remains balanced during frequent insertions and deletions?
Facilitation TipDuring Pair Tracing: AVL Rotations, provide pre-printed tree diagrams with marked insertion points so pairs focus on the rotation mechanics, not redrawing entire trees.
What to look forPresent students with a small, unbalanced binary search tree. Ask them to identify which type of balancing (AVL or Red-Black) would be more appropriate for a system expecting frequent insertions and deletions, and to briefly justify their choice.