What is a binary search tree and what is its key property?

A BST is a balanced tree where every node has the same number of children.

A BST stores keys in random order for fast insertion.

A BST stores keys in sorted order where left subtree keys are less than the node and right subtree keys are greater, enabling efficient search, insert, and delete.

A binary search tree stores keys in a hierarchical order where every node has all keys in its left subtree smaller than the node’s key and all keys in its right subtree greater than the node’s key. This ordering is what makes searching, inserting, and deleting efficient: by comparing the target key to a node, you can decide to go left or right, cutting the remaining search space in roughly half each step. If the tree stays balanced, the height grows logarithmically with the number of nodes, giving fast operations; if it becomes skewed, performance can degrade toward linear time. This structure specifically describes storing keys in sorted order with the left side smaller and the right side larger, which is what enables those efficient operations. The other descriptions don’t fit a binary search tree: it isn’t defined as a graph with cycles, it isn’t about random ordering, and it doesn’t require every node to have the same number of children.

A BST is a graph with cycles.

Want more questions?

All options are one-time payments.

$12.50

30 day premium pass

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$30.00 $87.50 usd

6 month DELUXE pass (most popular)

Everything with the 30 day premium pass FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • Everything included in the premium pass
  • $87.50 usd value for $30.00! You save $57.50!
  • + Access to the ultimate digital PDF study guide
  • + 6 months of premium pass access
  • + Priority support
$12.50 $18.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy