Question
Easy

Solution to recurrence relation $T(n)=T(n-1)+2$ is given by, where $n>=0$ and $T(0)=5$

1
$T(n)=2n-5$
2
$T(n)=n-5$
3
$T(n)=2n+5$
4
$T(n)=n-3$
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Software Engineering & Problem Solving
Topic: Programming Concepts
Correct Answer
Option C
Explanation

The correct option is (3): The recurrence relation $T(n)=T(n-1)+2$ is a simple first-order linear recurrence relation that represents an arithmetic progression, where the term for $n$ is always 2 greater than the term for $n-1$. To solve this and find a closed-form expression, we use the method of iteration (or unrolling). Starting with $T(n)$, we substitute the relation repeatedly: $T(n) = T(n-1) + 2 = (T(n-2) + 2) + 2…Read More

Solution to recurrence relation - HTET Level 3 | Clear Cutoff