Big-O Growth Comparator
Compare asymptotic complexity curves and estimated wall-clock runtimes across input sizes. Built for Big-O & Complexity, this workbench updates the asymptotic growth chart and scalar readouts in real time as parameters change.
Technical Reference & Equations
- Standard Asymptotic Hierarchy:
O(1) < O(\log n) < O(n) < O(n\log n) < O(n^2) < O(2^n) < O(n!)(Ordered from slowest to fastest growth as input size n -> infinity.) - Master Theorem Form:
T(n) = a T\left(\frac{n}{b}\right) + f(n), \quad c_{\text{crit}} = \log_b a(a >= 1 subproblems, b > 1 size reduction factor, f(n) combine cost.) - Master Theorem Case 2 (Balanced):
f(n) = \Theta\left(n^{\log_b a} \log^k n\right) \implies T(n) = \Theta\left(n^{\log_b a} \log^{k+1} n\right)(Covers Merge Sort T(n) = 2T(n/2) + O(n) -> Theta(n log n).)
View full Big-O & Complexity Formula Sheet | Constants Table
Related Big-O & Complexity Calculators
- Master Theorem Recurrence Solver: Classify divide-and-conquer recurrences T(n) = aT(n/b) + Θ(n^d) with a recursion tree work breakdown.
- Sorting Algorithm Visualizer: Step through Quick, Merge, Insertion, Selection, and Bubble Sort with comparison and swap counters.
- Binary Search Tree Visualizer: Insert, delete, and search nodes on a live binary search tree with in-order, pre-order, and post-order traversals.
- Dijkstra Shortest Path: Edit edge weights on a network graph and watch Dijkstra’s shortest-path tree update.
- Amdahl’s Law Speedup Curve: Plot theoretical parallel speedup against processor core count and serial bottleneck limits.
- Base & Two’s Complement Converter: Convert between Binary, Octal, Decimal, Hex, and signed 8/16-bit Two’s Complement with interactive bit toggles.