Introduction
The master mwthod provides a 'cookbook' method for solving recurrences of the form
where and are constants and is an asymptotically positive function. The master method requires memorization of three cases, but then the solution of many recurrences can be determined quite easily, often without pencil and paper
the master theorem
The master theorem method depends on the following theorem. Theorem 1.1 Let and be constants, let be a function, and let be defined on the nonnegative integers ny the recurrence
where we interpret to be mean either or . THen can be bounded as asymptotically as follow:
- if for some constants , the
- if , the
- if for some constant , and if for some constant and all sufficiently large n, then
Before applying the master theorem to some examples, let's spend a moment trying to understand what is says. In each od the cases, we are comparing the function with the function , Intutively, the solution to the recurrence is determined by the larger of two functions. If, as in case 1, the function is the larger, then the solution is . If, as in case 3, the function is larger, then the solution is . If, as in case 2, t he function are the same size, we multiply by alogarithmic factor, and the solution is .
Beyond this function, there are some technicalities that must be understood. In the first caee, not only must be smaller than , it must be polynomially smaller. That is, must be asymptotically smaller than by a factor of for some . In the third case, not only must be larger than , it must be polynomially larger and in addition satisfy the "regularity" condition that . This condition is satisfied by most of the polynomially bounded functions that we shall encounter.
It is important to realize that the three cases do not cover all the possibilities for . There is a gap between cases 1 and 2 when is smaller than but not polynomially smaller. Similary, there is a gap between case 2 and 3 when is larger than but not polynonially larger. If the function falls into one of these gaps, or if the regularity condition in case 3 fails to hold, the master theorem cannot used to solve the recurrence.
zero-centered is an important operation for data before using PCA, as it will extract the matric feature vector