Question

Find the exact solution to the following recursive formula



a. T(1) = 1 and T(n)= T(n-1) + 3. Note the n-1 means that powers of two arent the feature to use here. b. T(1) = 1 and T(n)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The recursion formula for a) and b) is shown below. For c) master theorem is used as asked in c) part.

a) 7(1)-1 T(n)= Tari) +3. T(2) t = 1 (1)+3 = 1+ 3 = 1+ 3x) T(3) = T (2) + 3 = 1+3+3 = 1+ 3x2 T14) = T13) + 3 = 1+3+3+3=1+3+3

b) Tln)= T(n-1) + 2n-1 T(1) = 1 T (2) = T11) + 3 to =1+3=4 4 T(37= T (2)+5= 9 T(4) = T(3) + 7 = 16 . Ting = n2. We can also s

c) 7(1)=1 By T(n) = T(1/2) + un Master theorem, we get Tula at(n/ble fla) a=1, 6:2, flut vu It satisfies the condition f(nl=

Add a comment
Know the answer?
Add Answer to:
Find the exact solution to the following recursive formula a. T(1) = 1 and T(n)= T(n-1)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT