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
- Big-O Growth Comparator: Compare asymptotic complexity curves and estimated wall-clock runtimes across input sizes.
- Base & Two’s Complement Converter: Convert between Binary, Octal, Decimal, Hex, and signed 8/16-bit Two’s Complement with interactive bit toggles.
- ASCII / Hex / Base64 Encoder: Encode and decode between UTF-8/ASCII text, hexadecimal, binary, and Base64 with byte-by-byte inspection.
- IEEE-754 Single-Precision Float: Toggle sign, 8-bit exponent, and 23-bit mantissa bits interactively and inspect hex encoding.
- Bitwise ALU Simulator: Evaluate AND, OR, XOR, NOT, arithmetic/logical shifts, and flag bits across aligned bit registers.
- CPU Cache Address Slicer: Slice any 32-bit memory address into Tag, Set Index, and Block Offset bits.