4.5 The master method for solving recurrences
4.5-1
a
Here, we have a = 2, b = 4, and , and thus we have that . Since is polynomially larger than f(n) (that is, for ), case 1 applies, and .
b
Here, we have a = 2, b = 4, and , and thus we have that . Case 2 applies, so .
c
Here, we have a = 2, b = 4, and , and thus we have that . Since , for . Case 3 applies if we can show that the regularity condition holds for f(n). For sufficiently large n, we have that for . So .
d
Here, we have a = 2, b = 4, and , and thus we have that . Since , for . Case 3 applies if we can show that the regularity condition holds for f(n). For sufficiently large n, we have that for . So .
4.5-2
In Strassen's algorithm, . In Professor Caesar's algorithm, . In order to beat Strassen's algorithm, then Professor Caesar's algorithm cannot apply case 3, since which is polynomially larger than .
We have that . If case 2 applies, then , so , a = 16. And which cannot beat Strassen's algorithm.
So case 1 applies. And , and we have , thus , so the largest integer value of a is 48.
4.5-3
Here, we have a = 1, b = 2, and , and thus we have that . Case 2 applies, so .
4.5-4
Here, we have a = 4, b = 2, and , and thus we have that . Since f(n) is not polymonially larger than , so we cannot use master method to solve the recurrence.
According to exercise 4.6-2, , where k = 1. So .
4.5-5