Binary Search Trees: Ordering, Operations, Height, and Uses
5 flashcards · 5 quiz questions · 5 match pairs · 5 fill-in sentences · English
Your progress is kept in this browser only.Sign up to save it
Summary
A binary search tree (BST) organizes keys so that comparisons can guide a search toward one part of the tree at a time. This lesson introduces the BST ordering rule, explains how tree shape affects performance, and connects the structure to common uses.
A BST is a rooted binary tree: each node has at most two children, called its left and right children. Each node stores a key. For a node with key , every key in its left subtree is less than , and every key in its right subtree is greater than . This lesson uses the strict-order convention for distinct keys; implementations that allow duplicate keys must define a consistent policy for where duplicates go.
All flashcards
Quiz questions
Based on the Wikipedia article Binary search tree, licensed CC BY-SA 4.0. Adapted into a summary, flashcards and quizzes.