Give asymptotic upper and lower bounds for T .n/ in each of the following recurrences. Assume that T .n/ is constant for sufficiently small n. Make your bounds as tight as possible, and justify your answers.
a) T(n) = T(n/2) +T(n/4)+T(n/8)+n
b) T(n) = T(n-1) +1/n
c) T(n)= T(n-1) +lg n
d) T(n) = T(n-2) +1/lgn
a. T(n) = T(n/2) +T(n/4)+T(n/8)+n
Answer:
b. T(n) = T(n-1) +1/n
Answer:
c. T(n)= T(n-1) +lg n
Answer:
d. T(n) = T(n-2) +1/lgn
Answer:
Hope this answers your questions, please leave a upvote if you find this helpful.
Get Answers For Free
Most questions answered within 1 hours.