Exam-style question
Try this first
Trace a binary tree search for the value 65 using this tree: root 50; the left child of 50 is 30; the right child of 50 is 80; the left child of 80 is 65; the right child of 80 is 90. State the values examined, in order, and explain why each branch is selected.
Answer and explanation
Concise answer
The values examined are 50, 80, and 65.
Why this is correct
A correct trace records the root first, followed by one node from each selected branch. The comparisons with 50 and 80 determine the right and then left movements.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
