Topic B4 is Higher Level only. This unit covers binary trees and, in particular, the binary search tree (BST), an ADT that keeps data sorted so it can be searched quickly. You need the terminology (root, parent, child, leaf, subtree), the left and right ordering rules, how to insert values and sketch the resulting tree, and the three traversal orders. Traversals are the highest-risk part, so work them out node by node.
1. In a binary search tree, what is a leaf node?
2. An empty BST has 40, 20, 60, 10, 30 inserted in that order. Where is the value 50 placed when it is inserted next?
3. A BST is built by inserting 50, 30, 70, 20, 40, 60, 80 in that order. What is the output of an IN-ORDER traversal?
4. A BST is built by inserting 8, 3, 10, 1, 6 in that order. What is the output of a PRE-ORDER traversal?
Free revision content. Multiple-choice answers are marked instantly. Written answers are marked by AI on /free-mark.