Cramster.com - Homework Solutions, Lecture Notes, Exams, and Free Online Homework Help
Sign Up Now! Login Help Cramster Blog
Problem Solved.
    Home    
    Homework Help    
   Answer Board   
    Resources (Beta)    
   
Member's Topic Headline:

cs502 Algo i need complite Assignment..Solve the following recurrence relations and show its running time using asymptotic notations. You may assume that T(1) = 1 a) T(n) = T(sqrt(n))+1 b) T(n) = 2T(n-1)+1...(Calculate the T complexity of the follow)

Know the answer? Have a better solution? Share it.
Get Help Now.
View homework problems
explained for free!
Member Testimonials

Question:

Advertisement:

Answer | Ask New Question | Customize Profile | Leaderboards | 
FAQ

Member's Avatar

Pupil
Karma Points: 54
Respect (24%):
Date Posted: 5/16/2008 8:12:33 AM  Status: Live
cs502 Algo i need complite Assignment..Solve the following recurrence relations and show its running time using asymptotic notations. You may assume that T(1) = 1 a) T(n) = T(sqrt(n))+1 b) T(n) = 2T(n-1)+1...(Calculate the T complexity of the follow)
Course Textbook Chapter Problem
N/A N/A N/A N/A
Question Details:

Answers:

Member's Avatar

Rookie
Karma Points: 9
Date Posted: 5/16/2008 1:58:49 PM  Status: Live
Asker's Rating: Lifesaver   
Response:
  part (b):

T(1) = 1 = 20 = 21-1    

T(2) =2T(2-1) 

        = 2T(1)

        = 2= 21 = 22-1        

T(3) =2T(3-1) 

        = 2T(2)

        = 4= 22 = 23-1

T(n) =2T(n-1)  =2n-1

 

Asymptotic Solution of the given recurrence

Since T(n) =2n-1

          T(n) = O(2n)




By reading or posting messages on these forums, you are agreeing to the Answer Board's Terms of Service and Conduct (TSC).


About Cramster | Terms of Use | Privacy Policy | Contact Us | Press Room | Site Map | Support | Anti-Cheating Policy

Cramster.com is not affiliated with any publisher. Book covers, title and author names appear for reference only.
Copyright © 2008 Cramster, Inc.