I'm reading through SICP. It's my first introduction to computer science.
The book presents the Fibonacci algorithm below:
(define (fib n)
(cond
((= n 0) 0)
((= n 1) 1)
(else (+ (fib (- n 1))
(fib (- n 2))))))
The book mentions that the space this algorithm takes up is (n) and the time it takes is (φn). I understand the space complexity since it is the max depth of a tree, but I can't seem to wrap my head around how the time complexity is derived.