As we are nearing the end of the year, I look back at some
of the things that I’ve learned over the course of this term. Some particular
concepts I want to discuss is still on the concept of recursion. The SLOG I want
to discuss is the week that assignment 2 was due (Week #8). Back then when my
group members and I was finishing up on our assignments, at a point we were
stuck on implementing minimax. We just could figure out how to start on it. If I
recall correctly, that week was also the week where we worked on recursive methods
on binary trees. In the beginning of that lab, my partner and I was also stuck
on implementing the recursive methods for the trees. However, towards the end
of the lab, we were able to figure out some of the solutions to the lab, at
least sufficient enough to do the quiz. But at the end, I still wasn’t confident
on thinking recursively and I also wasn’t sure if at the end I did the quiz
correctly or not. Going back to the day before assignment 2 was due, my group
members worked tirelessly trying to get minimax to work, and thankfully at the
end we were able to figure it out. Recalling back to my earlier self, it is
understandable how I often get stuck on recursion. I think this is a mindset
that I will need to develop as I go through more and more of this course and
into my career of being a computer scientist. Even as I work on assignment 3
recently, I get stuck on some of the recursive thinking of the assignment.
I looked through some other SLOGs created by my peers,
Ruowen (http://csc148slogruowengao.blogspot.ca/)
in her first interactions with recursion, she was also quite overwhelmed and
challenged by it. Similar to me, my suggestion to her would be to have more
practice on recursive thinking and writing recursive functions. As I said
before, I believe recursion is a mindset, which is crucial in the careers of a
computer sciences. Furthermore, some other things that I can do to make
recursive thinking “easier” would be drawing pictures of what you think the function
should do. Mentioned by Wenzheng (http://1024forbidden.blogspot.ca/)
I’ve tried to draw out the recursive process of a function, and I have to say,
drawing it out sometimes can make this a lot easier. Problems encountered by
Wenzheng and I can relate out is sometimes it may be hard to figure out what the
base case of a recursive function should be. What we both agree on is to have
more practice writing recursive functions and thinking recursively.
Yay, strike finally over!
No comments:
Post a Comment