Question

Find the closed form for each T(n given as a recurrence: 4 | T(m - 1) + 2 : n > 2 2 T(n) = T(n-1) + 4n -3 : : n=1 n> 1 1 2 n=

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1)

T(n) = T(n-1) + 2 = T(n-2) + 2*2 = ..... = T(n-n) + n*2 = T(0) + 2n = 2n + 2

2)

T(n) = T(n-1) + 4n-3 = T(n-2) + 4[n + (n-1)] - 3*2 = ..... = T(n-n) + 4[n + (n-1) + ...... + 1] - 3*n

=T(0) + 4 * n*(n+1)/2 - 3n

= 2 + 2n(n+1) - 3n

= 2 + 2n^2 + 2n - 3n

= 2n2 - n + 2

NOTE: As per HOMEWORKLIB POLICY I am allowed to answer specific number of questions (including sub-parts) on a single post. Kindly post the remaining questions separately and I will try to answer them. Sorry for the inconvenience caused.

Add a comment
Know the answer?
Add Answer to:
Find the closed form for each T(n given as a recurrence: 4 | T(m - 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