Open In Colab

Recursion AssignmentΒΆ

Solve the recursion $\( f(n) = 7f(n-1)-10f(n-2)\quad f(0) = 1\quad f(1)=3 \)$

  1. Using mathematical method taught in class to get analytic equation. Type up details and program function

  2. Using dynamic programming.

  3. Using dynamic programming and memoization.

  4. Compare the results of each function. Discuss the advantages and disadvantages of each method. Consider difficulty of solving and the time it would take to get the 1000 entry of the sequence in each of the three solutions.