Algomination
Data Structures
AboutContact

Algomination

Learn algorithms and data structures through smooth, interactive visualizations.

SortingSearchingArray AlgorithmsData StructuresAboutContact

© 2026Algomination. Created by Omang Rawat & Rahul Soni.

Omang Rawat
Rahul Soni
All data structures

Binary Search Tree

Avg O(log n)Space O(n)

An ordered tree where every left child is smaller and every right child larger. Insert, search, and delete in O(log n) on average, and traverse it breadth-first (level-order) or depth-first (pre-, in-, and post-order).

Traverse:
20
30
40
50
60
70
80
A binary search tree — every left child is smaller, every right child larger.
VisitingTraversedFound

About Binary Search Tree

An ordered tree where every left child is smaller and every right child larger. Insert, search, and delete in O(log n) on average, and traverse it breadth-first (level-order) or depth-first (pre-, in-, and post-order).

Time complexity: O(log n). Space complexity: O(n).

Use the interactive visualizer above to run Binary Search Tree on your own input and watch every comparison, swap, and operation animate step by step — pause, scrub, or replay at any speed.