Recall & Review
beginner
What is the BST property?
In a Binary Search Tree (BST), for every node, all values in its left subtree are smaller, and all values in its right subtree are larger.
Click to reveal answer
beginner
Why does the BST property matter?
It allows fast searching, inserting, and deleting because we can decide to go left or right at each node, reducing the work to about log₂(n) steps.
Click to reveal answer
intermediate
What happens if the BST property is broken?
The tree loses its order, making search and other operations slower, often requiring checking many nodes instead of just a few.
Click to reveal answer
beginner
How does the BST property help in searching for a value?
At each node, compare the value to search with the node's value. If smaller, go left; if larger, go right. This halves the search space each step.
Click to reveal answer
intermediate
Can a BST have duplicate values? Why or why not?
Usually no, because duplicates break the strict ordering needed for the BST property. Some variations allow duplicates but handle them carefully (e.g., always to the right).
Click to reveal answer
What must be true for every node in a BST?
✗ Incorrect
The BST property requires left subtree values to be smaller and right subtree values to be larger than the node.
Why is searching faster in a BST compared to a regular binary tree?
✗ Incorrect
The BST property lets us decide to go left or right, ignoring half the nodes each time, speeding up search.
What happens if you insert a value smaller than the root in a BST?
✗ Incorrect
Smaller values go to the left subtree to maintain the BST property.
If a BST property is broken, what is the likely effect?
✗ Incorrect
Breaking the BST property means we cannot decide direction easily, making search slower.
Which of these is NOT a reason the BST property is useful?
✗ Incorrect
BST property usually does not allow duplicates anywhere; duplicates must be handled carefully.
Explain the BST property and how it helps in searching for a value.
Think about how you decide to go left or right when searching.
You got /4 concepts.
Describe what happens if the BST property is broken and why it matters.
Consider how the tree behaves without the ordering rule.
You got /4 concepts.