Fibonacci 1: plain recursion
The textbook definition, run as written: the same calls happen again and again.
n5
fib(5) needs fib(4) and fib(3).
- fib(5): needs fib(4) + fib(3)
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub