Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is the slope in a binary search tree?
Think about the heights before and after deletions.
Define what a rotation is in the context of trees.
Consider what happens when a tree becomes unbalanced.
What happens when the slope at a node is +2?
Focus on left and right relationships.
True or False: Calculating the height of subtrees is done on the fly.
Think about efficiency in tree operations.
Describe the full rebalancing process if a tree node x has a slope of +2 and y has a slope of -1.
Think about the order of operations for rotations.
If you need to delete a node and it causes a slope of -2, explain the steps for rebalancing.
Consider both child slopes to determine the actions.
4 more questions in this section. Enroll free to practise them all.
Enroll free