Wednesday, March 30, 2016
SLOG Week #11
This week, I will
talk about a topic that I talked about few weeks ago, back in week 6,
recursion. Recursion is used in function to call the function itself, to repeat
itself. Instead of using iteration such as for-loops and while-loops in a function,
by using recursion, even though it may take longer to run, it makes iterative
function much simpler, and it is much easier to use on data structure like
trees. At the time I learned it, I understood the concept and was able trace
recursive function by myself but I did not really understand how to implement
it when needed. I thought of it as the most annoying and hardest topic for me
to understand completely. My biggest mistake was when I was introduced to
recursion, I thought it would be the easiest topic in this course, but I was
wrong and it ended up being the hardest for me. Now, my views and confidence on
that topic did not really change much. It is still annoying to learn and I am still
not confident in my abilities when it comes to using recursion, even after
learning trees and binary trees, writing test on that subject. Probably did not
spend more time on it than I should have. Since recursion is very important
part of the course, especially when it comes to trees, I should master my
skills on it so that I can finish the course successfully.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment