Comparison of Fibonacci Series Generation Using Iterative and Recursive Methods
In the recursive visualization of fib(5), why do multiple nodes with the same label (e.g., f(2)) appear?
When stepping through the recursive simulation, why does the call stack grow before any values are returned?
In the iterative Fibonacci simulation, how does the execution flow differ from the recursive version?
Based on the simulation, which visualization shows a call tree structure?
Why does the total number of calls grow rapidly in the recursive simulation as n increases?
When comparing both simulations, which approach uses constant extra memory?
While observing both modes, why does the iterative simulation complete with far fewer steps?
If memoization were added to the recursive simulation, how would it compare visually to the iterative version?
After using both simulations, which statement best summarizes the trade-off?