Binary Search Tree Visualizer

Insert, delete, and search nodes on a live binary search tree with in-order, pre-order, and post-order traversals. Built for Data Structures & Algorithms, this workbench updates the binary tree diagram and scalar readouts in real time as parameters change.

Technical Reference & Equations

  • Comparison Sort Lower Bound: \Omega(n \log n) (Decision-tree bound for any comparison-based sort (Merge Sort, Heapsort, Timsort).)
  • BST Height Bounds: h_{\text{balanced}} = \lfloor \log_2 n \rfloor, \quad h_{\text{skewed}} = n - 1 (Search/insert/delete run in O(h) time.)
  • Dijkstras Priority-Queue Complexity: O\big((V + E)\log V\big) (Requires non-negative edge weights w(u, v) >= 0.)

View full Data Structures & Algorithms Formula Sheet | Constants Table

Related Data Structures Calculators