Give asymptotically tight big-O bounds for T(n) in each of the following recurrences. Justify your solution by naming the master method case, by iterating the recurrences or by using the substitution method.
A. T(n)= T(n-2)+1
B. T(n)=2T(n/2) +n lg2
C. T(n)=9T(n/4)+n2
D. T(n)=3T(n/2)+n
E. T(n)=T(n/2+n0.5)+n
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |