Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Test: Recurrence Relations - Computer Science Engineering (CSE) MCQ

Test: Recurrence Relations - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test - Test: Recurrence Relations

Test: Recurrence Relations for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Test: Recurrence Relations questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Recurrence Relations MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Recurrence Relations below.
Solutions of Test: Recurrence Relations questions in English are available as part of our course for Computer Science Engineering (CSE) & Test: Recurrence Relations solutions in Hindi for Computer Science Engineering (CSE) course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: Recurrence Relations | 10 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: Recurrence Relations - Question 1

Consider the recurrence relation a1=4, an=5n+an-1. The value of a64 is _________

Detailed Solution for Test: Recurrence Relations - Question 1

an=5n+an-1
= 5n + 5(n-1) + … + an-2
= 5n + 5(n-1) + 5(n − 2) +…+ a1
= 5n + 5(n-1) + 5(n − 2) +…+ 4 [since, a1=4]
= 5n + 5(n-1) + 5(n − 2) +…+ 5.1 – 1
= 5(n + (n − 1)+…+2 + 1) – 1
= 5 * n(n+1)/ 2 – 1
an = 5 * n(n+1)/ 2 – 1
Now, n=64 so the answer is a64 = 10399.

Test: Recurrence Relations - Question 2

What is the recurrence relation for 1, 7, 31, 127, 499?

Detailed Solution for Test: Recurrence Relations - Question 2

Look at the differences between terms: 1, 7, 31, 124,…. and these are growing by a factor of 4. So, 1⋅4 = 4, 7⋅4 = 28, 31⋅4 = 124, and so on. Note that we always end up with 3 less than the next term. So, b= 4bn-1 + 3 is the recurrence relation and the initial condition is b= 1.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Recurrence Relations - Question 3

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

Detailed Solution for Test: Recurrence Relations - Question 3

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

Test: Recurrence Relations - Question 4

Find the generating function for the sequence given recursively by

an - 2an-1 - 4an-2 = 0 with a0 = 2 and a1 = 5?

Detailed Solution for Test: Recurrence Relations - Question 4

an - 2an-1 - 4an-2 = 0
an = 2an-1 + 4an-2 (given)
a0 = 2, a1 = 5
a2 = 2(5) + 4(2) = 18, a= 2(18) + 4(5) = 56
a4 = 2(56) + 4(18) = 184
∴ sequence: 2, 5, 18, 56, 184
G(x) = 2 + 5x + 18x2 + 56x3 + 184x4 …
2xG(x) = 4x + 10x2 + 36x3 + 112x4 …
4x2G(x) = 8 x2 + 20x3 + 72x4 …
G(x)(1 – 2x – 4x2) = 2 + x
G(x) = 

Test: Recurrence Relations - Question 5

Find the value of a4 for the recurrence relation a= 2an-1 + 3, with a= 6.

Detailed Solution for Test: Recurrence Relations - Question 5

When n = 1, a= 2a+ 3, Now a= 2a+ 3. By substitution, we get a= 2(2a+ 3) + 3.
Regrouping the terms, we get a= 141, where a= 6.

Test: Recurrence Relations - Question 6

Determine the solution for the recurrence relation b= 8bn-1 − 12bn-2 with b= 3 and b= 4.

Detailed Solution for Test: Recurrence Relations - Question 6

Rewrite the recurrence relation bn - 8bn-1 + 12bn-2 = 0. Now from the characteristic equation: x− 8x + 12 = 0 we have x: (x−2)(x−6) = 0, so x = 2 and x = 6 are the characteristic roots. Therefore the solution to the recurrence relation will have the form: b= b2+ c6n. To find b and c, set n = 0 and n = 1 to get a system of two equations with two unknowns: 3 = b2+ c6= b + c, and 4 = b2+ c6= 2b + 6c. Solving this system gives c=-1/2 and b = 7/2. So the solution to the recurrence relation is, b= 7/2*2− 1/2*6n.

Test: Recurrence Relations - Question 7

Determine the value of a2 for the recurrence relation an = 17an-1 + 30n with a= 3.

Detailed Solution for Test: Recurrence Relations - Question 7

When n= 1, a= 17a+ 30, Now a= 17a+ 30*2. By substitution, we get a= 17(17a+ 30) + 60. Then regrouping the terms, we get a= 1437, where a= 3.

Test: Recurrence Relations - Question 8

Determine the solution of the recurrence relation F= 20Fn-1 − 25Fn-2 where F= 4 and F= 14.

Detailed Solution for Test: Recurrence Relations - Question 8

The characteristic equation of the recurrence relation is → x2−20x + 36 = 0
So, (x-2)(x-18) = 0. Hence, there are two real roots x1=2 and x2=18. Therefore the solution to the recurrence relation will have the form: a= a2n+b18n. To find a and b, set n = 0 and n = 1 to get a system of two equations with two unknowns: 4 = a2+ b18= a + b and 3=a2+ b6= 2a + 6b. Solving this system gives b = -1/2 and a = 7/2. So the solution to the recurrence relation is,
an = 7/2*2n−1/2*6n.

Test: Recurrence Relations - Question 9

If S= 4Sn-1 + 12n, where S= 6 and S= 7, find the solution for the recurrence relation.

Detailed Solution for Test: Recurrence Relations - Question 9

The characteristic equation of the recurrence relation is → x− 4x - 12 = 0
So, (x-6)(x+2) = 0. Only the characteristic root is 6. Therefore the solution to the recurrence relation will have the form: a= a.6n+b.n.6n. To find a and b, set n=0 and n=1 to get a system of two equations with two unknowns: 6 = a6+ b.0.6= a and 7 = a6+ b.1.6= 2a + 6b. Solving this system gives a=6 and b=6/7. So the solution to the recurrence relation is, a= 6(6n) − 6/7n6n.

Test: Recurrence Relations - Question 10

The solution to the recurrence relation a= an-1 + 2n, with initial term a= 2 are _________

Detailed Solution for Test: Recurrence Relations - Question 10

When n = 1, a= a+ 2. By substitution we get, a= a+ 2 ⇒ a= (a+ 2)+2 and so on. So the solution to the recurrence relation, subject to the initial condition should be a= 2 + 2n = 2(1+n).

Information about Test: Recurrence Relations Page
In this test you can find the Exam questions for Test: Recurrence Relations solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Recurrence Relations, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)