Uploaded December 2019 | Updated September 2026, 2 weeks ago
This diagram traces the calls that the computer makes while executing a memoized recursive algorithm to calculate Fibonacci numbers for an input of 5. After calculating each number, the results are stored in the "memo" (a lookup table), which reduces the amount of recursive calls later.
Learn more on Khan Academy: khanacademy.org/computing/computer-science/algorithms/recursive-algorithms/a/improving-efficiency-of-recursive-functions
This diagram traces the calls that the computer makes while executing a memoized recursive algorithm to calculate Fibonacci numbers for an input of 5. After calculating each number, the results are stored in the "memo" (a lookup table), which reduces the amount of recursive calls later.
Learn more on Khan Academy: khanacademy.org/computing/computer-science/algorithms/recursive-algorithms/a/improving-efficiency-of-recursive-functions










