Exercise 1.17
Recursive, naive: \(\Theta(n)\) time, \(\Theta(n)\) space.
These are taken as primitives:
Recursive, sucessive doubling: \(\Theta(\log n)\) time, \(\Theta(\log n)\) space.
Recursive, naive: \(\Theta(n)\) time, \(\Theta(n)\) space.
These are taken as primitives:
Recursive, sucessive doubling: \(\Theta(\log n)\) time, \(\Theta(\log n)\) space.