Values 50, 30, 70, 20, 40, 60, 80, and 35 are inserted one at a time into a binary search tree, with each comparison step highlighted to show how the tree takes shape. A search for 35 then traces the same logic, reaching it in four comparisons. The animation contrasts this balanced case, where operations run in O(log n), with a sorted-input case that degenerates into a linear chain, useful for students learning BST behavior and worst-case complexity.
16:9 · every frame verified for overlaps, spacing and edges before rendering
Inserting 50, 30, 70, 20, 40, 60, 80, 35 one at a time with the comparison path highlighted, then searching for 35 in four comparisons; O(log n) when balanced, a chain when input is sorted.