NEOCODE

Math MCQs

Recurrence Relation

1. Which of the following is a linear homogeneous recurrence relation of order 2

2. What is the characteristic equation of the recurrence relation an = 5 an-1 - 6an-2?

3. What is the initial condition required to solve the recurrence relation an = 2an-1 + 3?

4. Which technique is often used to solve linear homogeneous recurrence relations?

5. The Fibonacci sequence is defined by which recurrence relation?

Modelling with Recurrence Relation

6. What is the recurrence relation for the Tower of Hanoi problem?

7. How does binary search’s recurrence relation look?

8. Which recurrence relation describes the number of subsets of a set with n elements?

9. Which recurrence relation models the cost of a recursive binary search?

10. A savings account starts with $1000 and earns 5% interest per year. Which recurrence relation models the account balance?

Mixed Questions

11.The solution to the recurrence relation an = 3an-1 -2an-2 is

12. What is the closed-form solution of the recurrence relation an = an-1 + d(arithmetic sequence)

13. Which recurrence relation models the number of ways to tile a 2×n board using 2×1 dominoes?

14. What’s the solution to the recurrence relation an = 2an-1 with a0 = 3

15. In modeling the growth of a bacteria colony that triples every hour, the recurrence relation would be:

>