Masterteoremet
The Master Theorem is a standard tool in the analysis of divide-and-conquer algorithms. It provides asymptotic bounds for recurrences of the form T(n) = a T(n/b) + f(n), where a >= 1, b > 1, and n is large.
The key quantity is n^{log_b a}, often called the critical exponent. The relative growth of f(n) compared
Case 1: If f(n) = O(n^{log_b a - epsilon}) for some epsilon > 0, then T(n) = Theta(n^{log_b a}).
Case 2: If f(n) = Theta(n^{log_b a} log^k n) for some k >= 0, then T(n) = Theta(n^{log_b a}
Case 3: If f(n) = Omega(n^{log_b a + epsilon}) for some epsilon > 0, and the regularity condition a
Examples help illustrate. Merge sort has a = 2, b = 2, f(n) = Theta(n), and log_b a = 1,
Limitations: The theorem applies strictly to recurrences of the specified form with the stated regularity conditions.