wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Solve the recurrence equations
T(n) = T(n - 1) +n
T(n) = 1

Open in App
Solution

By using substituion we get following series:
n + (n - 1) + (n - 2)+ (n - 3)... 3 + 2 +1
Which is sum of 'n' natural members.
= n(n+1)2 O(n2)

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Perfect Squares
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon