Reputation: 1
If there is a theory existing that proves this, what is it to prove that both would give the same worst case time complexity? It has been showed that both can provide solutions to a problem, but nothing about both giving same worst case time complexity.
Upvotes: 0
Views: 63
Reputation: 93
It completely depends on the problem. But generally, recursive solutions can be made more time-efficient by using dynamic programming.
Upvotes: 2