Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
Define a recurrence relation for the sequence where each term is the sum of the previous two.
Think of a sequence like Fibonacci.
What is the base case for a recurrence relation?
Look for the starting value of the sequence.
What is a recurrence relation?
Recurrence often involves sequences, think of Fibonacci.
True or False: Recurrence relations are not used in programming.
Think of recursion and dynamic programming.
Find the closed-form solution for the recurrence relation a_n = 3a_{n-1} - 2, a_1 = 2.
Consider iterating the first few terms.
Discuss how recurrence relations could optimize a recursive function for calculating factorial.
Look at storing values of the factorial calculation.
4 more questions in this section. Enroll free to practise them all.
Enroll free