If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Memoized Recursive Fibonacci Calls (Diagrammed)

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.

Want to join the conversation?

No posts yet.

Video transcript

Memoized Recursive Fibonacci calls