This third blog that I'm currently writing, is supposed to be my thoughts on recursion. One small problem though... I still don't quite fully understand what recursion is.
Recursion is a tricky subject; understanding how it works is much easier than knowing how to implement it. It's almost like the Deja Vu of computer programming. I always thought of recursion to be a special type of looping that we're suppose to use in our programs. In class, our professor explained it to us as a looping within a method, using the method in the method itself. I guess it's sort of like a method-ception. Its use is to break down complex problems to much smaller and easier tasks until a solution is reached. I guess it could be thought of as a puzzle: attaching smaller pieces together until the big picture is formed. So far, I feel that learning recursion will be the toughest part of computer science.
Though I have a general sense of how to trace a recursion function, I still have no idea on how to create one. I have a great feeling that creating recursion functions will be the doom of me. Hopefully, I will be able to master implementing recursion functions by the time we start assignment 2.
Recursion is a tricky subject; understanding how it works is much easier than knowing how to implement it. It's almost like the Deja Vu of computer programming. I always thought of recursion to be a special type of looping that we're suppose to use in our programs. In class, our professor explained it to us as a looping within a method, using the method in the method itself. I guess it's sort of like a method-ception. Its use is to break down complex problems to much smaller and easier tasks until a solution is reached. I guess it could be thought of as a puzzle: attaching smaller pieces together until the big picture is formed. So far, I feel that learning recursion will be the toughest part of computer science.Though I have a general sense of how to trace a recursion function, I still have no idea on how to create one. I have a great feeling that creating recursion functions will be the doom of me. Hopefully, I will be able to master implementing recursion functions by the time we start assignment 2.
No comments:
Post a Comment