When Recursion Goes Wrong | tekJutsu's Blog
When I was in college, my text book used a Fibonacci example to explain how recursion worked. Later on the job I needed to write a program in recursion. After the program ran eight to nine hours, my machine ran out of memory. It was a case of recursion went wrong. In fact, it can go very wrong sometimes. What I was taught in school to use recursion to solve Fibonacci problem is a classic example of bad recursion.
Read full article from When Recursion Goes Wrong | tekJutsu's Blog
No comments:
Post a Comment