Question

Solve the recurrence relation T(n)=T(n1/2)+1 and give a Θ bound. Assume that T (n) is constant for sufficiently small n....

Solve the recurrence relation T(n)=T(n1/2)+1 and give a Θ bound. Assume that T (n) is constant for sufficiently small n. Can you show a verification of the recurrence relation? I've not been able to solve the verification part so far

note: n1/2 is square root(n)

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

For verification we will use master's theorem

Master's theorem :-

T(n) = aT(n/b) + f(n), a>=1 and b>1

Compare nlogba and f(n)

i).if nlogba > f(n), greater by polynomial function

Then T(n) = theta(nlogba)

ii).If nlogba < f(n),greater by polynomial function

Then T(n) = theta(f(n))

iii).if f(n) = nlogba

Then T(n) = theta(f(n).logn)

Soling uwing suhsitufin methoe?theorem:- ers thal is solvable masers theoneim f n-2 Abve equat on s solvable madens teotem Hence, vexitied

Add a comment
Know the answer?
Add Answer to:
Solve the recurrence relation T(n)=T(n1/2)+1 and give a Θ bound. Assume that T (n) is constant for sufficiently small n....
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