Civil Engineering (CE) Exam  >  Civil Engineering (CE) Questions  >  Solution to recurrence relation T(n) = T(n - ... Start Learning for Free
Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.
  • a)
    T(n) = 2n - 5
  • b)
    T(n) = n - 5
  • c)
    T(n) = 2n + 5
  • d)
    T(n) = n - 3
Correct answer is option 'C'. Can you explain this answer?
Most Upvoted Answer
Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where...
Concept:
Recurrence Relation:
A recurrence relation relates the nth term of a sequence to its predecessors. These relations are related to recursive algorithms.
Definition:
A recurrence relation for a sequence a0, a1, a2,.... is a formula (equation) that relates each term an to certain of its predecessors a0, a1, a2,...., an-1. The initial conditions for such a recurrence relation specify the values of a0, a1, a2,...., an-1. For example, the recursive formula for the sequence 3, 8, 13, 18, 23 is
a1 = 3, an = an-1 + 1, 2≤n<∞
Calculation:
Given:
The recurrence relation , T(n) = T(n - 1)+ 2
If n = 1  then T(n) = T(n-1)+ 2 = T(1) = T(1-1)+ 2 = T(0) + 2 =5 + 2 = 7   // Value of T(0) given in Question
If n= 2  then T(n) = T(n-1)+ 2 = T(1) = T(2-1)+ 2 = T(1) + 2 =7 + 2 = 9   // Value of T(1) is 7 
If n= 3  then T(n) = T(n-1)+ 2 = T(1) = T(3-1)+ 2 = T(2) + 2 =9 + 2 = 11   // Value of T(2) is 9
Therefore, above pattern can be written in the form of
T(n) = 2n+ 5 
If n= 1 then T(n) = 2n+ 5 = T(1) = 2(1)+ 5 = T(1) =7 
Therefore Option 3 is the correct Answer
Explore Courses for Civil Engineering (CE) exam

Top Courses for Civil Engineering (CE)

Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.a)T(n) = 2n - 5b)T(n) = n - 5c)T(n) = 2n + 5d)T(n) = n - 3Correct answer is option 'C'. Can you explain this answer?
Question Description
Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.a)T(n) = 2n - 5b)T(n) = n - 5c)T(n) = 2n + 5d)T(n) = n - 3Correct answer is option 'C'. Can you explain this answer? for Civil Engineering (CE) 2024 is part of Civil Engineering (CE) preparation. The Question and answers have been prepared according to the Civil Engineering (CE) exam syllabus. Information about Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.a)T(n) = 2n - 5b)T(n) = n - 5c)T(n) = 2n + 5d)T(n) = n - 3Correct answer is option 'C'. Can you explain this answer? covers all topics & solutions for Civil Engineering (CE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.a)T(n) = 2n - 5b)T(n) = n - 5c)T(n) = 2n + 5d)T(n) = n - 3Correct answer is option 'C'. Can you explain this answer?.
Solutions for Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.a)T(n) = 2n - 5b)T(n) = n - 5c)T(n) = 2n + 5d)T(n) = n - 3Correct answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Civil Engineering (CE). Download more important topics, notes, lectures and mock test series for Civil Engineering (CE) Exam by signing up for free.
Here you can find the meaning of Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.a)T(n) = 2n - 5b)T(n) = n - 5c)T(n) = 2n + 5d)T(n) = n - 3Correct answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.a)T(n) = 2n - 5b)T(n) = n - 5c)T(n) = 2n + 5d)T(n) = n - 3Correct answer is option 'C'. Can you explain this answer?, a detailed solution for Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.a)T(n) = 2n - 5b)T(n) = n - 5c)T(n) = 2n + 5d)T(n) = n - 3Correct answer is option 'C'. Can you explain this answer? has been provided alongside types of Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.a)T(n) = 2n - 5b)T(n) = n - 5c)T(n) = 2n + 5d)T(n) = n - 3Correct answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Solution to recurrence relation T(n) = T(n - 1) + 2 is given by, where n > 0 and T(0) = 5.a)T(n) = 2n - 5b)T(n) = n - 5c)T(n) = 2n + 5d)T(n) = n - 3Correct answer is option 'C'. Can you explain this answer? tests, examples and also practice Civil Engineering (CE) tests.
Explore Courses for Civil Engineering (CE) exam

Top Courses for Civil Engineering (CE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev