Index Ai Academy
Glossary · Phase 7 · Software engineering

Binary search tree

Also written: binary search trees, BST, BSTs

A tree where everything left of a node is smaller and everything right is bigger, so a search goes down one path.

Try it now

Watch node move down the tree: one comparison per level, never visiting the other side.

Learn it properly

Binary search trees and traversals · Insert, search and delete in a sorted tree, walk it four ways, and see why balance and B-trees matter. About 40 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write