GATE CSE
First time here? Checkout the FAQ!
x
0 votes
57 views
1) T(n)=T(n-1)+1/n.
2) T(n)=T(n-1) +1/log(n)

3)T(n)=3T((n/3) - 2)+n/2.
4)T(n)=T(n/2)+T(n/4)+T(n/8)+n.
Use Masters theorem
asked in Algorithms by Junior (805 points)  
edited by | 57 views
I dont think master theorem can be applied for this..for the first one it just a harmonic series it will be O(logn).Try subsitution method.

Please log in or register to answer this question.

Related questions

+1 vote
1 answer
2
asked in Algorithms by harshit agarwal (337 points)   | 46 views
0 votes
2 answers
3
Top Users Jan 2017
  1. Debashish Deka

    8978 Points

  2. sudsho

    5326 Points

  3. Habibkhan

    4798 Points

  4. Bikram

    4676 Points

  5. Vijay Thakur

    4496 Points

  6. saurabh rai

    4222 Points

  7. Arjun

    4216 Points

  8. Sushant Gokhale

    3834 Points

  9. santhoshdevulapally

    3808 Points

  10. Kapil

    3736 Points

Monthly Topper: Rs. 500 gift card

19,229 questions
24,123 answers
53,257 comments
20,323 users