Naive fib(20) makes over 20,000 calls because it recomputes the same small values again and again.
Circle one: True False
In this method, what is the recurrence?
What should you write down before any code for such a problem?
The memoised version computes each of fib(0) through fib(20) exactly once. How many values is that?
Answer: ______________
Why does storing answers save nothing when moving a stack of rings?
Mergesort splits data into pieces that are all distinct. Which condition for the method fails?
A friend says storing answers speeds up every recursion. What is the best reply?
On the longest simple path, reusing vertices breaks building big answers from smaller ones. Which condition fails?