• edited by
2,462 views
1 1 vote

Let $T(n) = T(n-1) + \frac{1}{n} , T(1) = 1 ;$ then $T(n) = ? $

  1. $O(n^{2})$
  2. $O(logn)$
  3. $O(nlogn)$
  4. $O(n^{2}logn)$

2 Answers

2 2 votes

......

this is the way to dealing with such type of question 

 

 

 

 

 

 

Position:
Show:

Related questions

1 1 vote
2 2 answers
1.8k
1.8k views
aditi19 asked May 14, 2019
1,772 views
What will be solution of recurrence relation if roots are like this: r1=-2, r2=2, r3=-2, r4=2is this the case of repetitive roots?
0 0 votes
0 0 answers
835
835 views
Lakshman Bhaiya asked Oct 24, 2018
835 views
Let $a_{n}$ be the number of $n$-bit strings that do NOT contain two consecutive $1's.$ Which one of the following is the recurrence relation for $a_{n}?$$a_{n}=a_{n-1}+2...
3 3 votes
1 answers 1 answer
651
651 views
himanshu2001 asked Sep 29, 2024
651 views
Can Somebody help me solve these recurrences?What is the method generally employed to solve questions of this type?Taken from https://jeffe.cs.illinois.edu/teaching/algor...
22 22 votes
1 1 answer
4.2k
4.2k views
P C asked Dec 31, 2022
4,157 views
What is the recurrence relation for the ternary strings of length $n$ which can be constructed using 0,1 or 2 only such that the number of 0’s and number of 1's is odd ...