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: https://www.khanacademy.org/computing...
Watch video Memoized Recursive Fibonacci Calls (Diagrammed) online without registration, duration hours minute second in high quality. This video was added by user Khan Academy Computing 10 December 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,690 once and liked it 35 people.