Question

1. (25 points) Given the recurrence relations. Find T(1024). 2 T(n) = 2T(n/4) + 2n + 2 for n> 1 T(1) = 2

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

ANSWER:

Code:

# Python code
def T(n):
if n==1:
return 2
else:
return 2*T(n/4)+2*n+2

# Testing
print(T(1024))

4094.0 ...Program finished with exit code 0 Press ENTER to exit console. I

Answer:

T(1024) is 4094

If you do not get anything in this solution ,please put a comment and i will help you out.

Do not give a downvote instantly.It is a humble request.

If you like my answer,please give an upvote......Thank you.

Add a comment
Know the answer?
Add Answer to:
1. (25 points) Given the recurrence relations. Find T(1024). 2 T(n) = 2T(n/4) + 2n +...
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