Master Theorem Recurrence Solver

Classify divide-and-conquer recurrences T(n) = aT(n/b) + Θ(n^d) with a recursion tree work breakdown. Built for Big-O & Complexity, this workbench updates the recursion tree breakdown 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